---
title: RSTRIP
url: https://www.tines.com/docs/formulas/functions/rstrip/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# RSTRIP

*[View on tines.com](https://www.tines.com/docs/formulas/functions/rstrip/)*

Removes all whitespace (tabs, spaces, and newlines) from the right side of text.

**Categories:** Text

## Syntax

```
RSTRIP(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "       Hello World!      "
  }
}
```

Formula:

```
RSTRIP(my_action.message)
```

Output:

```json
"       Hello World!"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "RSTRIP",
      "description": "You'll see that the white space after \"martin\" was removed, but the white space before \"hello\" was not.",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "rstrip": "=RSTRIP(my_action.string)"
        }
      },
      "position": {
        "x": -6570,
        "y": -1275
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "Click before and after \"hello my name is martin\" and you will see there is white space.",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "string": " hello my name is martin "
        }
      },
      "position": {
        "x": -6570,
        "y": -1365
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
