HEX items can be compared only to hexadecimal digits.
Make sure that the comparison value includes only hexadecimal digits.