fixed capitalizing bug #35

Fixes capitalized as follows:
- all lowercase --> all lowercase with replacement
- all upper --> all upper with replacement
- mixed format --> prints original word, no replacement
I see. I liked the consistency of doing all three checks at the top, but this works too.