Trimming in opts.createSearchChoice

Adds trim to opts.createSearchChoice default to avoid mismatches with val object. Fixes #1484