added text sanitization