Replacing one character with another in a string

Viewed 77843

I have a data like below:

A:B:C:D

and I want to replace the C with data (say, Z) so that it may look like

A:B:Z:D

How can I do it?

2 Answers
Related