public char readSymbol() throws IOException{
        if(numberSymbol == currentString.length() ){
            end = true;
        }
        if(end == false){
            currentSymbol = currentString.charAt(numberSymbol);
            numberSymbol += 1;
        }
        return currentSymbol;
    }