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

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

# LSTRIP

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

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

Does not affect spaces between words.

**Categories:** Text

## Syntax

```
LSTRIP(text)
```

## Examples

### Example 1

Input:

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

Formula:

```
LSTRIP(my_action.message)
```

Output:

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

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "LSTRIP",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "lstrip": "<<LSTRIP(my_action.string)>>"
        }
      },
      "position": {
        "x": -6285,
        "y": -1140
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "If you click before and after \"hello my name is martin\" you'll see extra spaces. LSTRIP removes all whitespace.",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "string": " hello my name is martin "
        }
      },
      "position": {
        "x": -6285,
        "y": -1260
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
