pushing given string as starting node into queue
q . Enqueue ( str ) ; visit . Add ( str ) ; while ( q . Count != 0 ) { str = q . Peek ( ) ; q . Dequeue ( ) ; if ( isValidString ( str ) ) { Console . WriteLine ( str ) ;