Create collapseSpaces.java