extract join method to join a node to string