fix string tail ending in event.annotate function