 <p>Why are you replacing it with <code>\n</code>? </p> <p>Try to replace it with an <strong>empty string</strong> instead, like <code>''</code>. Try to replace <code>\r\n</code> with <code>""</code> and <code>\n</code> with <code>""</code></p>