add function check_str, include  check_regex