Refactoring: Do title sanitization on setTitle