adding trim to opts.createSearchChoice default function to avoid mismatches with val object