Method for handling comma-separated values in templateOptions helper