I want to remove last three characters from a string:
string myString = \"abcdxxx\";
Note that the string is dynamic data.
string myString = "abcdxxx"; if (myString.Length<3) return; string newString=myString.Remove(myString.Length - 3, 3);