Free text search (script search)
If the submitted string contains spaces, HTML <FORM> submission algorithm transforms spaces into plus signs (+) gefore inserting it into the query part of the URL.
Presently, search uses this string (argument _string) "as is". If, unfortunately, the string contains spaces, it is passed to glimpse with the pluses. The search will frequently results in a failure or at best in incorrect hits.
$searchtext =~ s/\+/ /g;
before launching the searh in sub search.