redo HW4
Debugged toString capitalization error