Would this be cleaner as `inverse_of_title_re.sub(lambda s: ...)` ?