Trim white chars

From Cuis CookBook
Revision as of 09:53, 5 May 2025 by Nmingott (talk | contribs) (hilligh)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is one of the first things to do on user input data. Remove white characters at the beginning and the end of the string. This is how to do it.

' Hello World ' withBlanksTrimmed . "=> 'hello world' "