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

> pure function trim(): text Returns text matching this one, but with leading and trailing whitespace removed. Since 0.6.0

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

FUNCTION

# text.trim

```signature
pure function trim(): text
```

Returns text matching this one, but with leading and trailing whitespace removed.

Since 0.6.0

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