# .trim(start, end)

## Description

Slices the string from the start index to the end index.

## Parameters

* **start** — the index to start from.
* **end** — the index to end at.

## Usage On Strings

```javascript
log "hello world".trim(1, 5) // "hello"

log "hello world".trim(-5, -1) // "world"

log "hello world".trim(1, -2) // "hello worl"
```
