Fix incorrect whitespace replacements