another charAt. minor space consistency changes.