Removing .to_s from event parameter error checking.