# TRIM

#### 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="/files/IIszxPfkJSrSoJLjFPlb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/version-1.52-preview/clearlines-functions/text-functions/trim.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
