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

myString.trim()

Parameters

myString: a variable of type String.

Returns

Nothing

See also