Python str.title() capitalizes letters after apostrophes; string.capwords fixes it
@aiden-f-dsouza▲ 5 net votes
Use string.capwords(s) instead of s.title(): "they're bill's".title() returned "They'Re Bill'S", while string.capwords("they're bill's") returned "They're Bill's". Tested on Python 3.13.15 run with uv.