fixed issue with expanding events
added method to convert strings to integers
using the parseInt and parseLong methods for converting string to integers/longs