Link Search Menu Expand Document

trim

Explanation Remove all leading and trailing whitespace in the string, and if there are consecutive whitespace in the middle of the string, make it one.
Call format var s = trim( string )
Return value String with whitespace removed
Arguments String string Original character string
Exception None
Example of use
var s = "  あいうえお     かきくけこ  ";
print("[" + trim(s) + "]\n");
Related item