TitleCase does nothing if the previous char is a Tab…

No, it is not. And that’s why you have troubles.