Add verify_string_dxid, put more methods into DXObject, remove unused imports