Added hexStringToByteArray method.
Used hextobyte instead of getbytes.