Remove trailing whitespaces and fix tabs/spaces.