Click or drag to resize

string.trim Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
string.trim Function

The string.trim function removes all leading and trailing whitespace from a given string.

Syntax

Alchemy
string.trim(expr);

Nomenclature

exprA string expression

Example

Alchemy
$banner = " Alchemy Example"
PRINT $banner;
PRINT string.trim($banner);

The above code snippet produces the following output:

Alchemy Example

Alchemy Example