String replace function is used to replace string. Your syntax is wrong. You have to use php string function like below example. First of all, think about first and two values and replace in third. Let's have a look.
It produces the output.
HI Jack.
You can create an HTML form and change on button only.
Another
str_replace('"','$^',$var);