Trim$ Function

Syntax
Trim[$](S$)
Group
String
Description
Return the string with S$'s leading and trailing spaces removed.
Parameters Description
S$ Copy this string without the leading or trailing spaces. If this value is Null then Null is returned.
See Also
LTrim$( ), RTrim$( )

Sub Main
    Debug.Print "."; Trim$("  x  "); "." '".x."
End Sub