Fix permissions node.  Add ability to surround replacement text with "s so end of line spaces can be added.
Don't process cancelled events.