Use charAt, for IE