I\'m not sure how to resolve the above error messages, I have tried to convert it to index b
In Swift 3, advancedBy() has been renamed to advanced(by: Int).
advancedBy()
advanced(by: Int)
Additionally, substringWithRange has been renamed to substring(with: Range).
substringWithRange
substring(with: Range)