vb net delete last character of string not all occurrence code example Example: vb.net remove last char from string temp = temp.Trim().Remove(temp.Length - 1)