This page is also available in 3 other languages

trim()

[StringObject Function]

Description

Get a version of the String with any leading and trailing whitespace removed. As of 1.0, trim() modifies the string in place rather than returning a new one.

Syntax

string.trim()

Parameters

string: a variable of type String

Returns

None

See also