Would it be possible to just "do nothing" if empty search string is given?
You are right. I have removed the string and its usage.