Skip to main content
Skip table of contents

normalizeSpaces() Operation

Syntax

set aNormalizedString = aString.normalizeSpaces()
set aNormalizedString = normalizeSpaces(LITERAL)

Semantics

Removes all leading and trailing spaces and reduces the occurrence of a number of consecutive white spaces (spaces, new lines, carriage returns, and tabs) located between parts of a string to one space. Returns a new string. The state of the current string is not changed.

Substitutables

aString

Can be any variable or object attribute having the type String.  

LITERAL

String literal.

Examples

NONE
 set normalizedString = s1.normalizeSpaces();
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.