anchor.diff:  
     String _substringUncheckedNative(int startIndex, int endIndex)
         native "StringBase_substringUnchecked";
  +
  +  // Checks for one-byte whitespaces only.
  +  // TODO(srdjan): Investigate if 0x85 (NEL) and 0xA0 (NBSP) are valid
  +  // whitespaces for one byte strings.
  +  static bool _isOneByteWhitespace(int codePoint) {
  +    return
  +      (codePoint == 32) || // Space.
  +      ((9 <= codePoint) && (codePoint <= 13)); // CR, LF, TAB, etc.
  +  }
   
     String trim() {
       final int len = this.length;
  
positive.code:         "_ExternalTwoByteString can only be allocated by the VM");
    }
  
    // Checks for one-byte whitespaces only.
    // TODO(srdjan): Investigate if 0x85 (NEL) and 0xA0 (NBSP) are valid
    // whitespaces. Add checking for multi-byte whitespace codepoints.
    bool _isWhitespace(int codePoint) {
      return
        (codePoint == 32) || // Space.
        ((9 <= codePoint) && (codePoint <= 13)); // CR, LF, TAB, etc.
    }
  }
  
  
negative.code:         "_ExternalOneByteString can only be allocated by the VM");
    }
  
    bool _isWhitespace(int codePoint) {
      return _StringBase._isOneByteWhitespace(codePoint);
    }
  }
  
  