code: private static boolean contentEquals(String s, char[] chars, int start, int length) {
  		if (s.length() != length) {
  			return false;
  		}
  		for (int i = 0; i < length; i++) {
  			if (chars[start + i] != s.charAt(i)) {
  				return false;
  			}
  		}
  		return true;
  	}
docs: Content equals.
  
  @param s the s
  @param chars the chars
  @param start the start
  @param length the length
  @return true, if successful