change behavior flag_prefix in is_hex()