handles polynomial addition and multiplication, with toText() output as String