SQUEEZE
r = SQUEEZE (s)
Removes all leading, trailing and duplicated white-space from string
s
.
Example:
" Hi there "
s = print "["; s ; "]"
print "["; SQUEEZE(s); "]"
'Output:
' [ Hi there ]
' [Hi there]
Code samples using SQUEEZE
r = SQUEEZE (s)
Removes all leading, trailing and duplicated white-space from string
s
.
" Hi there "
s = print "["; s ; "]"
print "["; SQUEEZE(s); "]"
'Output:
' [ Hi there ]
' [Hi there]