You can get a substring from a string by using subscripts or a number of other methods (for example, prefix , suffix , split ) . You still need to use String. Index and not an Int index for the range, though. (See my other answer if you need help with that.)14 Kas 2017