A better delete-trailing-whitespace function and mapping