add flag_prefix in is_hex()