whitespace processor to merge spaces