public static byte[] convertStringToBytes(String hexString) {

		CharSequence characters = condenseByteString(hexString);
		return convertCharSequenceToBytes(characters);
	}
Parse hexadecimal digits into a byte array.

@param hexString hexadecimal digits
@return numeric value as a byte array, or null if string contains invalid hex characters.
Ghidra/Framework/Generic/src/main/java/ghidra/util/NumericUtilities.java