Text: Trim whitespace from start of text

This action is in beta and the function or availability may change unexpectedly.

🕙  1 minute read

Use this action to trim the whitespace (such as spaces, returns, or tabs) from the start of a string. For example, the phrase ` Quick brown fox has whitespace before the first word—this would be trimmed. While the phrase Quick brown fox`, which has a large whitespace gap in the middle, would not be trimmed.

Spaces in the middle of a phrase are unaffected.

Example Result
quick brown fox quick brown fox
Quick brown fox Quick brown fox
Quick! Brown, fox! Quick! Brown, fox!

How to configure this action

When configuring this action, enter a string or reference a field in the Source Text field configuration. How do I reference a field?

Fields for this action

  • Source Text

    • The string to perform the operation on. Enter text or reference a Catalytic text field.
  • Output field prefix

    • To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.

What will this output?

This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:{{output-field-prefix--output-field}}.

Output fields for this action

  • Resulting Text

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.