private static int findNextChar(InputStreamReader br) throws IOException {
        int character = br.read();
        while((character>=0)&&(character!=' ')&&(character!='\n')) {
            character=br.read();
        }
        character=br.read();
        while(character==' '||character=='\n') {
            character=br.read();
        }
        return character;
    }