working is_hexadecmial() method