# TrimRight

## Overview

![The TrimRight Node.](/files/KgrmqRbj01Y783pdaj4A)

The **TrimRight** **Node** trims certain chosen characters from the right side of a **String**, until a different character is found. 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** "babbaac".

[**Scope**](/incari-studio/2023.1/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The TrimRight Node Attributes.](/files/NQlti2RmzJOJDMOFVut0)

| Attribute    | Type       | Description                                                                                |
| ------------ | ---------- | ------------------------------------------------------------------------------------------ |
| `String`     | **String** | The **String** to be trimmed from the right, if none is given in the **Input** **Socket**. |
| `Characters` | **String** | The characters to be trimmed from `String`, if none are 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 from the right.                          |
| `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**](/incari-studio/2023.1/toolbox/string/trimleft.md)
* [**Trim**](/incari-studio/2023.1/toolbox/string/trim.md)


---

# 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://docs.incari.com/incari-studio/2023.1/toolbox/string/trimright.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.
