TRIM

r = TRIM(s)

Removes all leading and trailing white-space from string s.

Example

s = "   test   "
t = trim(s)
print "->" + s + "<-"
print "->" + t + "<-"

' Output:
' ->    test    <-
' ->test<-