toSingleSpace

Modified on Wed, 16 Aug 2023

Description

Convert multiple spaces to a single space for a string

Syntax

toSingleSpace(text)

Parameters

Input ParameterTypeDescription
textstringString to process

Return value

Type
string

Sample

ExampleResultDescription
toSingleSpace("John Smith")"John Smith"Remove additional spaces

To view all the String functions, click here.

See Also