Reference > Expressions > Built-in Functions > String Functions > Trim

Trim

Returns the input after trimming off all leading and trailing white space characters. See http://msdn.microsoft.com/en-us/library/system.char.iswhitespace%28v=vs.110%29.aspx for a definition of white space characters.

Syntax

Trim(txt)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects Yes
Reports No

Parameters

txt

The text to trim.

Return Value

Text value.

Example

In the following example, notice that there is a leading space before the phrase, and a trailing space after the phrase.

$(Trim(" This is an example "))

The example above returns "This is an example".