Translations:Help:Extension:ParserFunctions/2611/en

If you want to keep the casing after replacement, you have to use multiple nesting levels (i.e. multiple replace calls) to achieve the same thing.