Remove unnecessary string replacements.