IE7 Fix for View Store that caused an infinite loop and eventually a stack overflow exception

In IE7, it is not possible to get a character from a string using the box [] notation.
This caused IE7 to return defined, enter a infinite loop and then cause a stack overflow error.

Amended the offending lines to use charAt instead.