added isHex()