[TIMOB-16381] Retain the searchString instance

Backport of PR #5324 into 3_2_X
Fixes [TIMOB-16381](https://jira.appcelerator.org/browse/TIMOB-16381)