Strings of length 5 contain 5 characters, but the last character is at position 4 because String is an array of char so the last character is [4] because 5-1 = 4.
I just wanted to make it clear.