Cleaning corpora before inserting to the database.