Simplified toString method, renamed nextItem to nextNode