Also, Pankaj - some food for thought.
If you have strict considerations to maintain the case for names, then if you are using the default first name SL algorithm, it may very well happen that the case is changing after masking from the original value.
Now, if that is not a consideration for you, then the solution with pre-script or with a custom SQL will work like a charm, but if it is a consideration, then custom mapplet is the way to go.
Regards,
Mayank