> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# TRIM

> The TRIM function removes leading and trailing spaces from text. It is supported across multiple YiDA scenarios, including Form and workflow design. Given a text value as its parameter, the function returns the text with leading and trailing spaces removed.

The **TRIM** function removes leading and trailing spaces from text.

## Supported Scenarios

The TRIM function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (associated actions)
* Integration and automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
TRIM(text)
```

## Parameters

| **Parameter** | **Required** | **Description**                       |
| ------------- | ------------ | ------------------------------------- |
| text          | Yes          | The text from which to remove spaces. |

## Return Value

| **Return type** | **Description**                                    |
| --------------- | -------------------------------------------------- |
| Text            | The text with leading and trailing spaces removed. |

## Example

In the figure below, the formula returns `YiDA low-code platform`.

## Behavior

TRIM removes leading and trailing spaces from a string but preserves spaces used as separators between words within the string.
