# LTRIM

Removes leading whitespaces from a string.

## Syntax

`LTRIM(string)`

### Parameters

#### string

String expression to process. If the value is `null`, the function returns `null`.

## Examples

Removes leading spaces from the `message` and `color` columns, then wraps the trimmed results in single quotes.

```esql
ROW message = "   some text  ",  color = " red "
| EVAL message = LTRIM(message)
| EVAL color = LTRIM(color)
| EVAL message = CONCAT("'", message, "'")
| EVAL color = CONCAT("'", color, "'")
```