> 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/.trimend.md).

# .trimEnd()

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

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

myString.trimEnd('%20'); // http://jscula.org
```

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

```javascript
let myString = "http://jscula.org ";

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