toString method for Equations