title: How to automatically replace a specific word with different one, when it is typed in google sheets
body: <p>So for a joke in my office, I am trying to write a script that will change my friend's name to something else whenever he types it into our shared google sheets spreadsheet.
  I got as far as this code that changes everything typed into something else but I would like it to be specifically his name that triggers the script.</p>
  <p>Could someone quickly finish it for me? (below is the attempted code)</p>
  <p>Much appreciated.</p>
  <pre><code>function onEdit(e)
  {
    var sh=e.source.getActiveSheet();
    var col=e.range.getColumn();
    var row=e.range.getRow();
    if(sh.getName()=='Sheet1' )
    {
      sh.getRange(row,col).setValue('horse');
    }
  }
  </code></pre>