adding trim to opts.createSearchChoice default function to avoid mismatches with val object
Merge pull request #1485 from timisbusy/master

Trimming in opts.createSearchChoice