The devil is in the details. Please post exactly the syntax used for your replace fields calculation. What you have posted here would result in an error message and you wouldn't be able to replace anything.
I'm not referring to the missingn parenthesis here, but the fact that a series of case functions can't be put in the same calculation dialog unless you have some kind of operator linking them. Thus, it is unclear exactly what you did with your replace field contents operation.
Above case syntax is wrong and you can't use more than one case in a single calculation.So you have to use the exact syntax of the case
Case( condition1;result1 ;
Looking forward to hear from you abt this.