Added StringIndexOutOfBoundsException for charAt, with unit tests.