Trim long names in search results