Remove trailing whitespaces before saving.