Hex string to uint