Adding _strip() method which gets called on the input text for removing '\n', '.' and whitespaces