I wonder if y'all know that there's a standard action for stripping trailing whitespace in the text bundle, which is bound to shft-cmd-bkspace.