Change the title filter behavior to match Python's behavior