> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# LTrim

> Removes leading spaces from the beginning of a given string.

Removes leading spaces from the beginning of a given string.

## Usage

```
LTrim(text)
```

**text** (required)- A string or column where each row contains a string.

## Example

```
LTrim(" John Doe ")
```

* Returns  “John Doe "
* Spaces on the right side are not removed

```
[LTrim of Names] = LTrim([Names])
```

* Returns:

![](https://files.buildwithfern.com/sigma.docs.buildwithfern.com/b818855f0d40baa1dfdf9ce8183ae6f55023ee0c5039d5bfae96d87dba0a6f15/assets/docs-images/54c645f-mceclip0_3.png)

## Related resources

* [RTrim](/docs/rtrim)
* [Trim](/docs/trim)