String (String result) { String cp = "-classpath "; int cpIdx = 0; while (true) { cpIdx = result.indexOf(cp, cpIdx); if (cpIdx == -1) break; int spaceIdx = result.indexOf(" ", cpIdx + cp.length()); if (spaceIdx == -1) break; result = result.substring(0, cpIdx) + cp + StringUtil.unquoteString(result.substring(cpIdx + cp.length(), spaceIdx)) + result.substring(spaceIdx); cpIdx += cp.length(); } return result; }