I have a string with a new line at its end. I cannot choose to remove this newline. Its there in the string already. I wanted to remove the last single quote in this string. I tried using the method given in another post - Trim last character from a string
"Hello! world!".TrimEnd('!');
I get an error when I try to do "Hello! world!".TrimEnd(''');
How do I fix this ?