code: public static boolean isWhiteSpace(char ch[], int start, int length)
    {
  
      int end = start + length;
  
      for (int s = start; s < end; s++)
      {
        if (!isWhiteSpace(ch[s]))
          return false;
      }
  
      return true;
    }
docs: Tell if the string is whitespace.
  
  @param ch Character array to check as XML whitespace.
  @param start Start index of characters in the array
  @param length Number of characters in the array
  @return True if the characters in the array are
  XML whitespace; otherwise, false.