# Trim

## Overview

![The Trim Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-17a38c72ea664a36d76537182219b56098380718%2Ftrimnode20241.png?alt=media)

The **Trim** **Node** trims certain chosen characters from a **String**. It receives as **Input** a **String** to be trimmed and the characters to trim, and it outputs the trimmed **String**.

For example, trimming the characters "ab" from the **String** "babbaacababa" results in the trimmed **String** "c".

[**Scope**](https://docs.incari.com/incari-studio/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Trim Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-53a1a0451b9c03f0b12d42a2669732b192ea66ac%2Ftrimattributes.png?alt=media)

| Attribute    | Type       | Description                                                                           |
| ------------ | ---------- | ------------------------------------------------------------------------------------- |
| `String`     | **String** | The **String** to be trimmed, if none is given in the **Input** **Socket**.           |
| `Characters` | **String** | The characters to be trimmed from `String`, if none is given in the **Input Socket**. |

## Inputs

| Input             | Type       | Description                                                           |
| ----------------- | ---------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**  | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `String`          | **String** | The **String** to be trimmed.                                         |
| `Characters`      | **String** | The characters to be trimmed from `String`.                           |

## Outputs

| Output             | Type       | Description                                                                                                                            |
| ------------------ | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**  | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Trimmed`          | **String** | The trimmed **String**.                                                                                                                |

## See Also

* [**TrimLeft**](https://docs.incari.com/incari-studio/toolbox/string/trimleft)
* [**TrimRight**](https://docs.incari.com/incari-studio/toolbox/string/trimright)
