I need to remove two characters from the end of the string.
So:
string = \"Hello Marco !\"
must be
Hello Marco
Try this:
var s = "Hello Marco !"; var corrected = s.Substring(0, s.Length - 2);