# LTrim()

Removes leading spaces from a string.

```
LTrim( string=string );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| string | string | Yes | A string or a variable that contains one |  |

# Examples

```cfml
  // create variable with a string of text that has leading and trailing spaces
  foo = " Hello World!  ";
  // output variable
  writeDump("-" & foo & "-");
  // output variable without leading spaces
  writeDump("-" & LTrim(foo) & "-");
```







# Categories

[Strings](../../categories/string.md)

# See Also

[RTrim()](rtrim.md), [Trim()](trim.md), [TrimWhitespace()](trimwhitespace.md), [string.ltrim()](../objects/string/ltrim.md)