Small getTitle refactoring