searchNormalized

Normalizes the string for search purposes.

This function performs the following transformations:

  1. Collapses multiple spaces, tabs into a single space.

  2. Trims leading and trailing whitespace.

  3. Converts the string to lowercase.

Return

A normalized, lowercase string suitable for search comparison.