Removing unused spaces