Created toString() method.

Made a loop within a loop, similar format to clear().