# LTrim - script and chart function

LTrim() returns the input string trimmed of any leading spaces.

Syntax:

LTrim(text)

Return data type: string

Examples and results:

Examples and results

| Example | Result |
| --- | --- |
| `LTrim( ' abc' )` | Returns 'abc' |
| `LTrim( 'abc ' )` | Returns 'abc ' |

## Learn more

* [RTrim - script and chart function](https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/RTrim.htm)