-import Foundation
-
 extension String {
     
     subscript (i: Int) -> Character {

        return self.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
    }
    
    mutating func remove(at:Int) {
        self.remove(at: self.intIndex(at: at)!)
    }

            return nil
        }
        
        let range = self.intIndex(at: from)!..<self.intIndex(at: to)!
        return self.substring(with: range)
    }
    
