added replaceSpace.java