# string_length function

Number of characters in a string.

## How to write it

### string_length(text)

**text**

The string. Takes a string.

## Examples

- $\displaystyle \operatorname{string\_length}(\text{hello world}) = 11$

  `string_length("hello world")`

  In the solver, `string_length("hello world")` gives `11`.

  [Open in the solver](https://hilberon.com/?q=string_length%28%22hello%20world%22%29)

## Related functions

- [to_string](https://hilberon.com/library/to_string)

  Write a value as a string.
- [string_join](https://hilberon.com/library/string_join)

  Join strings into one.
- [is_string](https://hilberon.com/library/is_string)

  Test whether a value is a string.

---
Source: https://hilberon.com/library/string_length
