SmallBASIC syntax groups: 

String function SQUEEZE

20  SQUEEZE (s)
Removes all leading, trailing and duplicated white-space.

See examples

If there is insufficient information on this page and you wish learn more about SQUEEZE, please send an email to smallbasic@gmail.com. You can help to improve information about SQUEEZE by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

? "["; SQUEEZE(" Hi  there "); "]"
' Result: [Hi there]