Access character using charAt for IE7 compatibility