# left

Source: https://taxilang.org/docs/language/stdlib/left

**Full name:** `taxi.stdlib.left`

## Signature

```taxi
declare extension function left(source:String, count:Int):String
```

## Description

Returns the leftmost `count` characters from a string.

```taxi
find { account: Account } as {
   prefix: String = account.code.left(3)
}
```

## Examples

Extracts the first N characters from a string.

Query:

```taxi
find {
   firstFive: String = left('HelloWorld', 5)
}
```

Result:

```json
{
  "firstFive": "Hello"
}
```
