Oh i never said your code was wrong (actually i never even checked it, i assumed it worked due to the level of complexity it looked like it had [ie: i assumed you didnt write it in the editor here])
I just mentioned his "How to replace alternative letters in a word or sentence, ignoring capital letters and spaces?" didnt gel with his examples.

To me he said take every other lowercase letter and make it a *.
He never said to capitalize anything so i assumed he botched his example (i make no refrence to your code, i dont know f it caps or not)