# str

> **str**(`value`): [`StrValue`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/strvalue/)

Defined in: [src/attr/values.ts:279](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/488e08c3687cc5cfaf5dd8ab0fe0f7fed40930bb/src/attr/values.ts#L279)

A UTF-8 string of at most 128 bytes, indexed for equality and prefix (`STARTSWITH`) matching.

The limit is on **bytes**, not characters: a string of 128 emoji does not fit.

## Parameters

### value

`string`

## Returns

[`StrValue`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/strvalue/)

## Throws

If the string exceeds 128 UTF-8 bytes.

## Example

```ts
str("Bob")
```