turn attribute values into strings