modified InsertSpace.java