Fixed memory bug with storing strings
added support to iterate over a List object.