Accesses the character at the given position.
- Xcode 7.1+
- Swift Standard Library
A valid index of the string.
imust be less than the string’s end index.
You can use the same indices for subscripting a string and its substring. For example, this code finds the first letter after the first space: