Text.LeftTrim
-------------

Trims whitespace on the left side.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Text](component_Text.md) | [14.2](newinversion142.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Text.LeftTrim"; Text ) 

**MBS**( **"Text.LeftTrim";** /\* Trims whitespace on the left side. \*/  
**$Text**) /\* The text to trim.e.g. " Hello " \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to trim. | " Hello " |

### Result

Returns text or error.

### Description

Trims whitespace on the left side.  
May remove low ASCII characters like tab, CR, LF and space.  
Also removes alt-space and delete character.  
  
This function works on pure text, so any text style is lost.  
### Examples

Trim hello:

 MBS ( "Text.LeftTrim"; " ¶ Hello ¶ ")  
<small>  
Example result: Hello</small>### Release notes

- **Version 14.2**
    - Added [Text.LeftTrim](https://www.mbsplugins.eu/TextLeftTrim.shtml) and [Text.RightTrim](https://www.mbsplugins.eu/TextRightTrim.shtml) functions.

This function is free to use.

Created 10th May 2024 , last changed 10th May 2024

  
[Text.JaroWinklerDistance](TextJaroWinklerDistance.md) - [Text.Length](TextLength.md)

[HTML Version](TextLeftTrim.shtml)