[TIMOB-16381] Retain the searchString instance
Merge pull request #5324 from vishalduggal/timob-16381

[TIMOB-16381] Retain the searchString instance