code: public static int skipSpaces (final String sIn, final int nStart)
    {
      int pos = nStart;
      while (pos < sIn.length () && (sIn.charAt (pos) == ' ' || sIn.charAt (pos) == '\n'))
        pos++;
      return pos < sIn.length () ? pos : -1;
    }
docs: Skips spaces in the given String.
  
  @param sIn
  Input String.
  @param nStart
  Starting position.
  @return The new position or -1 if EOL has been reached.