Breadcrumbs

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

 set normalizedString = s1.normalizeSpaces();
📗