Swift 4 : substring(with:)' is deprecated: Please use String slicing subscript
How can I use String substring in Swift 4? 'substring(to:)' is deprecated: Please use String slicing subscript with a 'partial range from' operator