Search database with searchbar with wrong letters

Hey,
so there’re a lot of codes, how to search the database with a searchbar.
The problem is that you have to write everything correct. So if I search for “Mark” I have to type in “mark”, but if I type in “hark” I get no results.

How can I fix this ? I need something like: show all results that match to 80% of the letters.

.contains() does not work ?

For .contains the words must match. If there is a wrong letter in it, you will get no results.

Bei .contains müssen die Wörter übereinstimmen. Wenn da ein falscher Buchstabe drin ist, bekommt man keine Ergebnisse.