Add charAt when looping through string for IE8
performance enhancement
Merge pull request #10 from lskrabonja/master

Add charAt when looping through string for IE8