---
title: Trim
slug: neurons-for-itsm/admin-user-help/enu/latest/trim
createdAt: 2026-07-14T19:16:45.184Z
---

Returns the input after trimming off all leading and trailing white space characters. See [https://docs.microsoft.com/en-us/](https://docs.microsoft.com/en-us/) for a definition of white space characters.

## Syntax

Trim(txt)

## Enabled For

For a description of the business object categories, see [Notes on "Enabled For"](docId\:u26v9feCFs6iLwA0-PVJd).

| Business Object Category                                                                    | Yes/No |
| ------------------------------------------------------------------------------------------- | ------ |
| Business Rules: Before-Save Rules                                                           | Yes    |
| Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load)    | Yes    |
| Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) | Yes    |
| Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load)         | Yes    |
| Business Rules: Editing Rules                                                               | Yes    |
| Business Rules: Initialization Rules                                                        | Yes    |
| Business Rules: Read Only Rules                                                             | Yes    |
| Business Rules: Required Rules                                                              | Yes    |
| Business Rules: Validation Rules                                                            | Yes    |
| Client Expressions                                                                          | Yes    |
| Object Permissions                                                                          | Yes    |
| Services                                                                                    | Yes    |
| LDAP                                                                                        | Yes    |
| Mobile                                                                                      | Yes    |
| Quick Actions (except UI Quick Actions)                                                     | Yes    |
| UI Quick Actions                                                                            | Yes    |
| Reports                                                                                     | Yes    |
| Search/Dashboard without field references                                                   | Yes    |
| Search/Dashboard with field references                                                      | Yes    |

## Parameters

| Parameter | Description       |
| --------- | ----------------- |
| txt       | The text to trim. |

## Return Value

:::Paragraph{indent="1"}
Text value.
:::

## Example

:::Paragraph{indent="1"}
In the following example, notice that there is a leading space before the phrase, and a trailing space after the phrase.
:::

$(Trim(" This is an example "))

:::Paragraph{indent="1"}
The example above returns "This is an example".
:::
