Fixed filetype, created StripTrailingWhitespaces() function