And before you mention it, the "const" keyword was removed from the return value of stripString, the post was edited, and the new link given. :)
I had it like that because it was originally returning a reference, then when I changed it back to return just a string, I forgot to remove the "const" keyword. But that's fixed now.