updated example 

corrected the numerical index ‘a’ variable to the expected string
object.

This corrects reported issue #1