Strip a set of characters from a string: Difference between revisions