Text: Remove Blank Spaces

🕙  1 minute read

Use this action to remove empty spaces or lines from the start, end or from inside of a string.

This action can help you ensure that a field is in the correct format, before using additional actions that require that format

Use case

If you have text that needs to have blank spaces deleted, the Text: Remove blank spaces action can automate that. For example, when text is in-putted manually, it may need to be trimmed before inputting it into a data table.

How to configure this action

Fields for this action

  • Text to format

    • A block of text that will have its blank spaces removed, as text or in {{field-name}} format
  • Output field name

    • The name of the field in which the result should be saved. The step name is used by default.
  • White space formatting

    • Select the type of formatting to be applied to the white spaces in the text to format

      • Enter leading to remove all whitespaces from the start of a string
      • Enter trailing to remove all whitespaces from the end of a string
      • Enter trim to remove all whitespaces from the start and end of a string
      • Enter inner to remove all whitespaces between the first and last characters of a string
      • Enter all to remove all whitespaces from the start, end and inside of a string
      • Enter multiple to Replace multiple whitespaces with one whitespace
      • Leave blank to leave white spaces unchanged
  • Line space formatting

    • Select the type of formatting to be applied to the line breaks in the text to format

      • Enter empty-lines to Remove all lines that are blank
      • Enter all to remove all line breaks to put all text onto one line
      • Enter multiple to Replace multiple empty lines with one empty line
      • Leave blank to leave linebreaks unchanged

What will this output?

The results of the action will be collected in the Output field name in the formatting specified by the White space formatting and Line space formatting.

Sorry about that. What was the most unhelpful part?









Thanks for your feedback

We update the Help Center daily, so expect changes soon.

Link Copied

Paste this URL anywhere to link straight to the section.

Need more help?

If you're signed in to Catalytic Community, you can ask other users a question. You'll be redirected to Community where you can add more info.