Cleaning of tutor scripts