Use map in attributesToString