Added a stringify helper function that is attached to each node