adding method for formatting event query strings