String (String commandLineString, String pathString) { int i = commandLineString.indexOf(pathString); commandLineString = commandLineString.substring(0, i) + commandLineString.substring(i + pathString.length()); return commandLineString; }