Trim Whitespaces in Your Texts Using the "Trim" Text Helper

Keragon’s Trim Text Helper allows you to remove unnecessary whitespace from the beginning and end of a text string. This is useful for cleaning up user inputs, form submissions, and any other text data that may contain accidental spaces.

How to Use the Trim Text Helper

00:00: Learn how to trim white spaces in your texts with carriganns trim action. 00:05: First go to your workflow editor. 00:09: Click the plus icon. 00:12: Access the helper's section from the menu. 00:15: Select the text helpers option from the menu. 00:19: Choose the trim action to trim white spaces. 00:21: Please note that this will only remove the Extra Spaces in both ends 00:25: of your text string. 00:28: Click on the value field 00:31: Map the text value that you want to trim in this sample. 00:34: The text string used has extra white spaces on both ends. 00:40: Save the changes made. 00:43: Click the test step button. 00:46: View the outputs tab 00:49: You can check the trimmed text here. 00:52: This guide covered the process of using carriganns trim action to remove 00:56: white spaces in texts.

  • Open your workflow editor.

  • Click the + icon to add a new step.

  • In the step selection panel, click "Helpers".

  • From the Helpers options, select "Text Helpers".

  • Choose the "Trim" action.

  • Click the Value field.

  • Use the Variable Selector to map the text value you want to trim. (Example: A name field that may contain extra spaces.)

  • Click "Save" to apply changes.

  • Click "Test Step" to preview the result.

  • Go to the Outputs tab to view the trimmed text.

Example Result:

  • Input: " John Doe "

  • Output: "John Doe"

Note: The Trim helper only removes whitespace from the start and end of the text. It does not remove spaces between words.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more