i noticed that, i tend to hit the reply button too quickly sometimes 😉
also, it a good idea to use trim and strip_tags, otherwise, \n will count as a character and so will html
so i would use something like this:
substr(trim(strip_tags($string)), 0, -2);
if you dont, and you have <b>foo</b> at the end of the string you'll end up with: foo</
you may also specify some html tags in the strip_tag funciton so it wont remove the word, just the html itself.