This is the "trim_comma" template.
It should be called in the following format:
{{trim_comma 1= string }}