fix dom_helpers. check for check_name to be string and use strct comparison