> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/trim.md).

# trim()

```
string trim(string)
```

`trim()` returns the given string argument without leading and trailing whitespace. The following characters are considered whitespace: space, newline, carriage return, tab, vertical tab.

Example:

```
trim("  xy
  ")
```

returns `xy`.
