Skip to main content Skip to complementary content

TRIM

Removes leading and trailing whitespace from the given input string.

Syntax

TRIM(STRING)

Arguments

STRING

Type: string

A sequence of characters.

Returns

Type: string

STRING with any leading or trailing whitespaces removed.


Examples

STRING Output
abc abc
abc abc
abc `abc
abc a abc a
ab c a ab c a
ab c a 3 ab c a 3
''
null null

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!