fixes IE7 incompatibility with string [] operator

replaced expr[index] with expr.charAt(index)
Merge pull request #5 from nikiml/patch-2

fixes IE7 incompatibility with string [] operator