No, you are mistaken. Strings, like arrays, are zero based. So for a String with a length of 5, characters exist at indicies of 0-4. Length, that is 5, would be invalid.