I have a string say
\"Hello! world!\"
I want to do a trim or a remove to take out the ! off world but not off Hello.
string s1 = "Hello! world!" string s2 = s1.Substring(0, s1.Length - 1); Console.WriteLine(s1); Console.WriteLine(s2);