Removing "\n" via text.Replace("\n",""); Whats wrong?

I have a string that I create at one point and this string contains the
characters to break the line. But I need to use that same string later without the
characters.

text = text.Replace("

“,”");

does not appear to be working.

Any ideas?

text = text.Replace("
“,”");