Truncate long title in note list and search result