   private var index: Int
   
   private var stringLength: Int {
-    return string.lengthOfBytes(using: .utf8)
+    return string.characters.count
   }
   
   private var stringIndex: String.Index {

    
    
    if remainingString.hasPrefix(search) {
      return (.value(search), index + search.lengthOfBytes(using: .utf8))
    }
    
    return (.none, nil)

      return (.none, nil)
    }
    
    return (.value(captured), captured.characters.count)
  }
  
  private func _peek(untilString search: String) -> (ScannerResult, Int?) {
