trim obj in xml_to_obj