slight fix to query_str_to_obj