Fixed issue with multi-character replacements