public byte[] parseBytes(String val) {

		try {
			return NumericUtilities.convertStringToBytes(val);
		}
		catch (Exception e) {
			throw new IllegalArgumentException("Invalid bytes: " + val);
		}
	}
Parses bytes from a string.

@param val The string to parse.
@return The bytes that were parsed from the string.
@throws IllegalArgumentException if there was a problem parsing bytes from the string.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java