trim()

Description

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

 

Syntax

string.trim()

 

Parameters

string: a variable of type String

 

Returns

none

 

Example

 

See also

 

Reference Home