# text.startsWith · Rell standard library · Chromia Docs (concept)

> pure function startsWith(prefix: text ): boolean Deprecated (for removal): Use 'starts_with' instead Checks if this text starts with the specified prefix. 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/starts-with/

FUNCTION

# text.startsWith

```signature
pure function startsWith(prefix: text): boolean
```

**Deprecated** (for removal): Use 'starts\_with' instead

Checks if this text starts with the specified prefix.

Note that for all texts `t`, `t.starts_with('')` is true, and for all texts `u` and `v` such
that `u == v`, `u.starts_with(v)` is true.

**Parameters**

* **prefix** — the prefix to check

**Returns**

true if this text starts with the specified prefix, false otherwise

Since 0.9.0

**Alias of** [text.starts\_with](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/starts_with/)

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/text/starts-with.html)Generated API reference, mirrored from the live docs
