How to make space optional in search


i would like to ask how to make space optional in our search.

For example we have product with name “wstążka satynowa 25 mm” and if someone types “wstążka satynowa 25mm” (no space between 25 and mm) it won’t search. We know about synonyms but how to do it without typing every possible synonym combination, there should be some option to change.