My favorite APL one liner (expression) reduces multiple sequences of spaces in a text string to a single space by doing boolean algebra on vectors of bits.