> 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/listtidy.md).

# ListTidy

Removes leading, trailing and repeated separators from a list.

| Expression      | Databox value                         | Result                             |
| --------------- | ------------------------------------- | ---------------------------------- |
| `ListTidy(";")` | `;B;;D;`                              | `B;D`                              |
| `ListTidy(",")` | `,Actinolite,Amosite,Anthophyllite,,` | `Actinolite,Amosite,Anthophyllite` |

Useful after building a list conditionally, where some of the parts turned out to be empty and left their separators behind.
