private static int compareStrings(String left, String right) {
		int leftLength = left.length();
		int rightLength = right.length();
		if (leftLength != rightLength) {
			return Integer.compare(leftLength, rightLength);
		}
		return StringUtils.compare(left, right);
	}
Throws an {@link IllegalArgumentException} if {@code directory} is not
a valid, normalized directory path (with forward slashes).
@param directory path to validate
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/sourcemap/UserDataPathTransformer.java