added Replace.java