Dim s As String
Dim t As String
Dim j As Int
s = ""
For j = 1 To 10
s = s & Chr(j)
Next
t = s.Trim
Log ( "source string" )
For j = 0 To s.Length - 1
Log ( "index = " & j & " ascii = " & Asc ( s.CharAt(j) ) )
Next
Log ( "trimmed string" )
For j = 0 To t.Length - 1
Log ( "index = " & j & " ascii = " & Asc ( t.CharAt(j) ) )
Next