convert string events to objects for further processing