adds function to convert a list of strings into a comma-separated string