Corrected issues in TextCleaner class