trim the string before passing it off to ol.expr.parse