Are you trying to remove a tag like "<foo>" from a string? Using `str.replace()` would be neater.