Basic text editor pre-cleaning