Change the semantic of the replaceSeparators function