I already said above, you either have to echo the separator conditionally, or better: use CSS to add the separator  using an  afterpseudo-element (put each category in a span with a classname) instead of echoing it in the template.
I already said above, you either have to echo the separator conditionally, or better: use CSS to add the separator  using an  afterpseudo-element (put each category in a span with a classname) instead of echoing it in the template.