Eliminate use of String.replace/replaceAll()