docs: public static boolean endsWith(CharSequence buf, CharSequence end) {
      int len = end.length(), start = buf.length() - len;
      if(start < 0) {
        return false;
      }
      for(int i = 0; i < len; i++, start++) {
        if(buf.charAt(start) != end.charAt(i)) {
          return false;
        }
      }
      return true;
    }