check if the string is a hexadecimal number
bool isHexadecimal(String str) { return _hexadecimal.hasMatch(str); }