Takes in a String that represents a math equation and attempts to solve it