I believe those quotes are there to indicate the return value is a string. For example, if I made a Javascript query that consisted of only return "Hello world", I'd get "Hello World" when I run the query. The right side of your screenshot removes these quotes, since that's how the console interprets a string.
In other words, as long as you were expecting a string returned, you're good to go!