I need to remove two characters from the end of the string.
So:
string = \"Hello Marco !\"
must be
Hello Marco
You can do:
string str = "Hello Marco !"; str = str.Substring(0, str.Length - 2);