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

# 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 >
