corrected expandSpaceFilter()