Trim$ Function
SyntaxGroupTrim[$](S$)
StringDescription
Return the string with S$'s leading and trailing spaces removed.
See Also
Parameters Description S$ Copy this string without the leading or trailing spaces. If this value is Null then Null is returned.
LTrim$( ), RTrim$( )
Sub Main Debug.Print "."; Trim$(" x "); "." '".x." End Sub