Added StripTrailingWhitespaces function from vimcasts.org
... and used the function to remove whitespace