hex string to integer