Add node names to addPrefix method in NodeMerger