How to replace a Substring in a String

MS-SQL Server provides the following string replacement function:

select replace(fruit_name,'ap','AP') as fruit_name from fruits;
Fruit_name
grAPe
APple
Orange
peach

IN THIS PAGE