Text.Trim

Syntax

Text.Trim(text as nullable text, optional trim as any) as nullable text

About

Returns the result of removing all leading and trailing whitespace from text value text.

Example 1

Remove leading and trailing whitespace from " a b c d ".

Usage

Text.Trim("     a b c d    ")

Output

"a b c d"