> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Trim Whitespace

> Remove whitespace from both ends of a string.

The **Trim Whitespace** action removes leading and trailing whitespace while
leaving whitespace inside the text unchanged.

## Inputs

| Input    | Type   | Required | Description       |
| -------- | ------ | -------- | ----------------- |
| **Text** | String | Yes      | The text to trim. |

## Outputs

| Output      | Type   | Description                                      |
| ----------- | ------ | ------------------------------------------------ |
| **Trimmed** | String | The text without leading or trailing whitespace. |

Spaces, tabs, and line breaks at either end are removed. To reduce repeated
whitespace within the text, use **Collapse Whitespace**.
