Added strip trailing whitespaces functionality.

It will take place each time when you save the buffer.