The LTrim, RTrim, and Trim functions remove spaces from the ends of strings. ... VB. Copy. ' Initializes string. Dim TestString As String = " " Dim ...
msdn.microsoft.com