Try


String.replaceAll(String statement, String replacement)


String (Java 2 Platform SE v1.4.2)