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