intent: Remove final characters from string recursively - What's the best way to do this?
rewritten_intent: remove letters from string `example_line` if the letter exist in list `bad_chars`
snippet: """""".join(dropwhile(lambda x: x in bad_chars, example_line[::-1]))[::-1]