Trim search string input in language overrides

Trim search string input fixes #4945