Trim entered text when searching for version matches