Added convertHex2Digit() method.