turn array values into comma-separated strings