buf = new StringBuilder("cd "); buf.append(MiscUtilities.getParentOfPath(buffer.getPath())); buf.toString(); buf = new StringBuilder(100); buf.append(processingpy); buf.append("processing-py.sh "); buf.append(sketch.replace(" ", "\\ ")); buf.toString();