Are you referring to the search bar on the openstreetmap.org homepage? This category of the forum is for feedback about the forum more specifically. Anyhow, that search bar is powered by Nominatim, which has its own issue tracker. If you end up sending the developers a feature request, you may want to explain in more detail the reason why a user would enter a multi-word name as a single word.