Use associative map instead of eval for string to operator conversion