removes illegeal character from comment