remove tabs, trailing spaces and long lines