> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/text-strings/.trimstart.md).

# .trimStart()

An improved Javascript string method: It not only removes leading whitespace from a string but also eliminates any specified characters.

```javascript
let myString = "%20jscula.org";

myString.trimStart('%20'); //jscula.org
```

It receives the characters to trim. Default is a single space.

```javascript
let myString = " jscula.org";

myString.trimStart(); //jscula.org
```
