remove invalid letters from sample text