fix addEvent and removeEvent
bugfix text: allow " in text strings