c# remove three characters from the end of a string code example Example: c# remove first three characters from string str = "hello world!"; str.Substring(n, str.Length-n)