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