If I have a string of characters like so:
This is a test string and I wa
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.