# LTrim
{: .no_toc }

Returns a **String** containing a copy of a specified string without leading spaces.

Syntax: **LTrim$(** *string* **)**, **LTrim(** *string* **)**

*string*
: *required* Any valid string expression. If *string* contains **Null**, **Null** is returned.

The `$`-suffixed form returns a **String**; the unsuffixed form returns a **Variant** (**String**).

### Common Errors

| Error | When |
|---|---|
| [94 (`&H5E`)](/Reference/Run-time-Errors.md#94), *Invalid use of Null* | **LTrim$** is given a *string* that is **Null** |

### Example

This example uses the **LTrim** function to strip leading spaces from a string variable.

```tb check_build
Dim MyString, TrimString
MyString = "  <-Trim->  "         ' Initialize string.
TrimString = LTrim(MyString)      ' TrimString = "<-Trim->  ".
```

### See Also

- [RTrim](/tB/Modules/Strings/RTrim.md), [Trim](/tB/Modules/Strings/Trim.md) functions
