Metabase not taking space in variable

I have created a variable in metabase which passes a string as query but it is not recognising spaces in between the characters, it only acts if i enter "hello" but fails when "hello ", do you have idea, the backend data connected is mongodb and it works fine in the console

Hi @ishkabirk
I don't understand what you mean.
Post "Diagnostic Info" from Admin > Troubleshooting.
Post your query with the problem.

There is nothing coming in the troubleshooting section, I've searched for it for very long
in 1st photo the data is there but in second it doesn't

@ishkabirk Then your Metabase setup is broken if you cannot see the "Diagnostic Info". I would recommend that you install the latest release again and follow any other recommendation.

Without seeing your query, then it's not possible to understand why it's not working.
Remove variable and hardcode a value to see if the problem is your database data might be containing multiple spaces (or perhaps not even using a space character, but some other character).