String Channel to switch Item

You need to escape whitespace using a backslash in a MAP key

“ESP\ ONLINE”=ON

That will be looking for quotemarks as well.