src: change some string events to constant (refs #289)