Helper Function: Build mxAlgebra object out of a string