Replace in Jquery

To replace a character or word in Jquery,

suppose we have following string

Now we want to change “PHP” to “Programming”