trimWord(s)
Removes multiple, leading or trailing spaces and punctuation from “words”. E.g. converts "word!"
to "word"
. Especially useful together with words()
;
Type: function
Parameter(s):
- s {String}:
The String to trim
Returns:
-
{String}:
The trimmed string