How to delete part of a string
<p>If I have a string of characters like so:</p>

<blockquote>
  <p>This is a test string and I wa</p>
</blockquote>

<p>And I wanted to delete everything after the "I" which would also include the space after the I, how would I do this? I definitely need to start at the end of the string and count backwards to the last space but I'm not sure how to do this.</p>
