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

# ListTidy

Removes leading, trailing and duplicated occurrences of the given separator.

<table><thead><tr><th width="189">Expression</th><th>Databox Value</th><th width="186">Result</th></tr></thead><tbody><tr><td><code>ListTidy(";")</code></td><td>;B;;D;</td><td>B;D</td></tr><tr><td><code>ListTidy(",")</code></td><td>,Actinolite,Amosite,Anthophyllite,,</td><td>Actinolite,Amosite,Anthophyllite</td></tr></tbody></table>
