The description does not specify to preserve the title case of the word replaced. Although the tests somehow expect the title case to be preserved if the word is getting replaced.
We should either:
A. change the test
B. Add a note in the description about this quirk.