Fixed newline replacements to replace globally