Added condition to check if HEX code contain only valid characters