Add tuple support to more str functions

Here’s a brute force algorithm I was brainstorming. It might need tests.