Declare node value and name as copy, so we don't have to worry about mutable strings being passed.