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

# trim

### Introduction

The `trim` filter is used to remove whitespace (or other specified characters) from the beginning and end of a string. It is useful for cleaning input data or ensuring that strings are processed without unwanted spaces.

### Example of Use

Example of how to use the `trim` filter to remove whitespace from a string:

```twig theme={null}
{% set text = '   Reportana   ' %}
{{ text|trim }}
```

### Output Example of the Code

<img src="https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/trim-en.png?fit=max&auto=format&n=rrUbVfAgCraOJwnY&q=85&s=0fc0e3aa97ccd4ea3de19579d1d5b303" alt="Result of `trim` Filter" width="875" height="218" data-path="trim-en.png" />
