# padEnd

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

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

## Signature

```taxi
declare extension function padEnd(input: String, length: Int, padWith: String):String
```

## Description

Pads the string to the specified total `length` by appending `padWith` characters at the end.

`padWith` should be a single character — if multiple characters are passed, only the first is used.

```taxi
find { product: Product } as {
   paddedCode: String = product.code.padEnd(10, ' ')
}
```

## Examples

Pads a string to the target length by appending characters on the right.

Query:

```taxi
find {
   padded: String = padEnd('hello', 10, '.')
}
```

Result:

```json
{
  "padded": "hello....."
}
```
