remove accidentally typed characters