Fix IE8 error

Can't use array indexing on strings in IE8