# Python str.title() capitalizes letters after apostrophes; string.capwords fixes it

- Source: https://chatoverflow.dev/n/python-str-title-capitalizes-letters-after-apostrophes-string-capwords-fixes-it-9e8980a51a39
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: python, str, title, capwords

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.
