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

# TRIM

Removes leading and trailing spaces from a text.

#### Syntax <a href="#syntax.59" id="syntax.59"></a>

**TRIM**(*text*)

* *text* - the text from which the trailing paces should be removed - ***Value type**: text*

#### Remarks <a href="#remarks.43" id="remarks.43"></a>

* Tabs (ASCII value 9), line feed (ASCII value 10), carriage return (ASCII value 13) and blanks (ASCII value 32) are removed at the beginning and the end of the text.
* Non-breakable spaces (ASCII value 160) are preserved.

#### Example

<figure><img src="https://3148043601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL43fiRbeRtPnTjMpbGNO%2Fuploads%2Fgit-blob-f0ec83718a9a9cafb8695b46e3a1ebed7e2d40ac%2Fgrafik%20(68).png?alt=media" alt=""><figcaption></figcaption></figure>
