parse Hex String To Byte Array
Converts a string of hex values into a byte array. Each part of the string should be a hex number, separated by spaces. For example, "0x01 0x02" becomes 1, 2 as bytes.
Return
A byte array representing the hex numbers or null if there are no valid hex numbers.
Parameters
hex String
A string containing hex numbers separated by spaces.