collapses whitespace