# Trim

This Function returns a *\<string>*, which is the specified **Source string** with all the spaces at beginning and ending removed.

### Parameters

* **Source string** *\<string> -* String to remove the spaces from.
* **Trim Left** *\<boolean> -* Removes spaces from the left side of the **Source string**?
* **Trim Right** *\<boolean> -* Removes spaces from the right side of the Source string?

### Examples

* *Example 1*

"<" + Trim(" Kalipso ", YES, YES) + ">"\
**Result** = \<Kalipso>

* *Example 2*

"<" + Trim(" Kalipso ", YES, NO) + ">"\
**Result** = \<Kalipso >

* *Example 3*

"<" + Trim(" Kalipso ", NO, YES) + ">"\
**Result** = < Kalipso>

* *Example 4*

"<" + Trim(" Kalipso ", NO, NO) + ">"\
**Result** = < Kalipso >


---

# 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://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/string-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.
