title: replace a word in text with javascript but not if the word is in a bigger word.
body: <p>Hi I want to replace words in a text string, but this seems harder than I thought. It should be in javascript. Say my word is 'ion'. It should replace when I see in the text: my ion, "ion", ion: is cool, (ion), [ion]. But not when it is part of another word like position (positION).  </p>
  
  <p>Probably it should be done with regular expressions but I don't know how. </p>