remove unnecessary spaces between macros and replacements