@Override
	public String normalizeValue(String value) {
		value = value.trim();
		// If the string is empty, it's invalid, just return false.
		if (value.isBlank()) {
			return null;
		}
		int pos = 0;
		int posend = value.length();
		if (value.charAt(0) == '/') {
			pos = 1;
		}
		if (value.charAt(posend - 1) == '/') {
			posend -= 1;
		}
		if (posend <= pos) {
			return null;
		}
		value = value.substring(pos, posend);
		return value;
	}
A BsimFilterType for filtering on functions by the starting path of their containing program.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/filters/PathStartsBSimFilterType.java