title: Replace last word in string
body: <pre><code>$variable = 'put returns between paragraphs';
  </code></pre>
  
  <p>Value of this variable everytime changes.</p>
  
  <p><strong>How to add some text before the last word?</strong></p>
  
  <hr>
  
  <p>Like, if we want to add <code>'and'</code>, the result should be (for this example):</p>
  
  <pre><code>$variable = 'put returns between and paragraphs';
  </code></pre>