> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/text-expressions/trim.md).

# Trim

Removes spaces from the start and end of the databox value.

| Expression | Databox value    | Result         |
| ---------- | ---------------- | -------------- |
| `Trim`     | `" Mr J Smith "` | `"Mr J Smith"` |
| `Trim`     | `" Mr J Smith"`  | `"Mr J Smith"` |

Spaces inside the value are left alone. Worth applying to anything that came from a database column of fixed width, and to items pulled out of a list with [Entry](/reference/expression-reference/text-expressions/entry.md).
