Converts concatenations of strings to a single one with substitutions \#{}.