PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Trim

Removes spaces, tabs and line breaks from both the start and the end of a text.

Trim removes the white space (spaces, tabs, line breaks) at the start and at the end of a text. The spaces inside the text stay. Use it to clean values typed in a form or read from a file before you compare or store them.

Add the action

In the Process Designer toolbox, open String and pick Trim (or type Trim in the search box).

The Trim action properties: Input String and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input StringInputTextYesThe text to clean.
ResultOutputTextYesThe text without leading and trailing white space.

Example

Input StringResult
hello world + tabhello world
new line + hello + Windows line breakhello
(spaces only)(empty text)

Good to know

  • White space means spaces, tabs, new lines, carriage returns and other Unicode spaces such as the non-breaking space.
  • Spaces between words are kept. To remove or replace them, use Replace.

On this page