added functions to write each polynomial in a system to a separate string