trimString

Returns a copy of this string with any whitespace characters removed from the start and end.

Syntax

trimString(content)

Returns

(string) a copy of this string with any whitespace characters removed from the start and end.

Parameters

content (string)
source

Usage

echo(trimString("\t\ntest trim1\t\n")); // prints "test"