Mega Code Archive
Removes all leading and trailing white-space characters from the current String object
Module Example
Public Sub Main()
Dim firstName As String = " test "
Dim name As String = firstName.Trim()
Console.WriteLine("The result is " + name + ".")
End Sub
End Module