Skip to content

Text.RemoveDoubleSpaces

Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 3 revisions

Removes consecutive double spaces from a text, replacing them with single spaces.

Syntax

Text.RemoveDoubleSpaces(
    inputText as text
) as text

Parameters

  • inputText: The text string from which to remove double spaces.

Return Value

Returns the input text with all consecutive double spaces replaced by single spaces.

Example

Text.RemoveDoubleSpaces("This  is   a    test.")

Result

"This is a test."

Clone this wiki locally