Trim String
  • 06 Feb 2025
  • 1 Minute to read
  • Dark
    Light

Trim String

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationData > Text

The Trim String step is a utility in our decisions platform that removes any leading or trailing whitespace from a given string. This means that any spaces or tabs at the beginning or end of a string are eliminated, resulting in a cleaner and more precise output.

Whitespace can cause inconsistencies and inaccuracies in data processing and storage. For instance, extraneous spaces can lead to unexpected behavior in search functions, data validation, and comparisons when working with user inputs. Using the Trim String step ensures that your data is standardized, improving the System's efficiency and minimizing errors.

To effectively utilize the Trim String step, input the desired string into the Input field in the properties section. The step will generate a cleaned version of that string without any surrounding whitespace. This ensures that your data is properly formatted and ready for further processing.


Properties

Inputs

PropertyDescriptionData Type
InputString to remove whitespace from.String

Outputs

PropertyDescriptionData Type
TrimString1_Output
New string with no whitespace around the string.String



Was this article helpful?

What's Next