Converts a generic list of strings to a csv string or a csv string to a generic list of strings