Function to toggle characters
static void toggleChars ( ) { for ( int i = 0 ; i < S . Length ; i ++ ) { if ( char . IsLetter ( S [ i ] ) ) { S [ i ] = ( char ) ( ( int ) ( S [ i ] ) ^ ( 1 << 5 ) ) ; } } }