Changed arraylist from node to string