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

# StripWhitespace - ComfyUI Built-in Node Documentation

> Complete documentation for the StripWhitespace node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StripWhitespace/en.md)

This node removes any extra spaces, tabs, or newlines from the beginning and end of a text string. It takes a text input and returns a cleaned version with the leading and trailing whitespace trimmed off.

## Inputs

| Parameter | Data Type | Required | Range | Description                                                           |
| --------- | --------- | -------- | ----- | --------------------------------------------------------------------- |
| `text`    | STRING    | Yes      | N/A   | The text string from which to remove leading and trailing whitespace. |

## Outputs

| Output Name | Data Type | Description                                                                     |
| ----------- | --------- | ------------------------------------------------------------------------------- |
| `text`      | STRING    | The processed text with all leading and trailing whitespace characters removed. |
