code: public static int indexOfNonWhiteSpace(CharSequence seq, int offset) {
          for (; offset < seq.length(); ++offset) {
              if (!Character.isWhitespace(seq.charAt(offset))) {
                  return offset;
              }
          }
          return -1;
      }
docs: Find the index of the first non-white space character in {@code s} starting at {@code offset}.
  
  @param seq    The string to search.
  @param offset The offset to start searching at.
  @return the index of the first non-white space character or &lt;{@code 0} if none was found.