code: public static boolean endsWith(CharSequence s, String end) {
      return (s.length() >= end.length() && s.subSequence(s.length() - end.length(), s.length()).equals(end));
    }
docs: TRUE if the Charsequence ends with the string