Make map_afrom_attr_str more caller friendly