parse Hex String To Byte
Converts a single hex string into a byte. The string must represent a hex number, like "0x01".
Return
The corresponding byte or null if the string is not a valid hex number.
Parameters
hex String
A string representing a single hex number.