Minor cleanup to getSearchTitle