spelling corrections and ~ removal