/wro4j-core/src/main/java/ro/isdc/wro/util/StringUtils.java
int tops = 0;int pos = 0;
int pos = 0;
private static String replace(final String inString, final String oldPattern, final String newPattern) { if (!hasLength(inString) || !hasLength(oldPattern) || newPattern == null) { return inString; } final StringBuilder sbuf = new StringBuilder(); <extra_id_0> int index = inString.indexOf(oldPattern); final int patLen = oldPattern.length(); while (index >= 0) { sbuf.append(inString.substring(pos, index)); sbuf.append(newPattern); pos = index + patLen;