i have a string called strOne = "hello and goodbye andONe and Hey"
i would like to replace all the "and" words with "hi"
so the new string would be strOne = "hello hi goodbye andONe hi Hey"
i tried strOne = replace(strOne, "and", "hi") but it replaces all and anything that contains "and" which is not what i want. What i want is to replace the word "and". how would i do that?
