ikegami 1:n solution is to take all possible interpretations and work with all of them. If you don't know whether 'foo bar' is 'foo.exe bar' or 'foo\ bar.exe' then give both back as solutions. This makes sure you don't overlook a valid interpretation, but it generates more false positives.