I'm trying to mask the credit card numbers of customers. We need to retain the first and last two digits and replace the rest with XXX. And also split the phone numbers in two three parts. For example 54367890 9042791965 should be 54XXXX90 and 90-427-91965. Is it advisable to achieve this using string replace and string concatenate functions? Please suggest if there is a better approach. Thanks!