trim node names