###GolfScript, 80 72 Characters###
.).46={;)}*25,{65+.32+}%?)\""=*!!\([{)..31&26-!26*-}25*;]n+\"."=n" "if**
Lots of the code is testing for valid input and the "print nothing"-option. The actual logic is 37 characters only.
###GolfScript, 80 72 Characters###
.).46={;)}*25,{65+.32+}%?)\""=*!!\([{)..31&26-!26*-}25*;]n+\"."=n" "if**
Lots of the code is testing for valid input and the "print nothing"-option. The actual logic is 37 characters only.