added hexadecimal and hexadecimalString checks