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.
The another example of trimming last character from a string:
string outputText = inputText.Remove(inputText.Length - 1, 1);
You can put it into an extension method and prevent it from null string, etc.