remove tabs and trailing whitespaces