server/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641)
Fixed an .rstrip(...) for the general case (untested).
Fixed an .lstrip(...) for the sqlite path (tested).
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".