Have you tried pressing on the search term and holding the press until you see a magnifier-like pop-up appear? Then, after it appears, and while still pressing, you can move the cursor back and forth so you can edit or delete any text.
Short of deleting the whole thing and starting over, that's the only solution I have found (while using the virtual keyboard).
Marilyn