> For the complete documentation index, see [llms.txt](https://docs.cascade.io/cascade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cascade.io/cascade/functions-and-expressions/functions/text/trim.md).

# TRIM

TRIM( `string`)

Removes leading, trailing, and repeated whitespace from a text string.

### Arguments

| Input  | Description                    |
| ------ | ------------------------------ |
| `text` | Text(s) to strip of whitespace |

### Output

Outputs `string` without excess whitespaces

### Example

```
TRIM("  leeroy   jenkins ")
>>leeroy jenkins   
```
