vb.net replace last 3 digits code example Example: how to remove characters from the end of a string visual basic myString = myString.Substring(0, myString.length - 1)