If ' [ ' opening bracket , push it into character stack .
else if ( str [ i ] == ' [ ' ) { if ( char . IsDigit ( str [ i - 1 ] ) ) { stringstack . Push ( str [ i ] ) ; } else { . Push ( str [ i ] ) ; . Push ( 1 ) ; } } else { stringstack . Push ( str [ i ] ) ; } }