Remove trailing whitespaces and replace tabs with four spaces.