> 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/version-1.66-de/clearlines-funktionen/text-funktionen/trim.md).

# TRIM

Entfernt führende und nachgestellte Leerzeichen aus einem Text.

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

**TRIM**(*text*)

* *text* - der Text, aus dem die umgebenden Leerzeichen entfernt werden sollen - ***Wertetyp**: Text*

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

* Tabulatoren (ASCII-Wert 9), Zeilenvorschub (ASCII-Wert 10), Wagenrücklauf (ASCII-Wert 13) und Leerzeichen (ASCII-Wert 32) werden am Anfang und am Ende des Textes entfernt.
* Nicht trennbare Leerzeichen (ASCII-Wert 160) bleiben erhalten.

#### Beispiel

<figure><img src="https://content.gitbook.com/content/5AXM9De6LygFtEaDe5ri/blobs/9Ulip8HL6W5Zta4iZyMP/grafik.png" alt=""><figcaption></figcaption></figure>
