Get the name of a node

How can I get the name of a node used?

I want to get its name by string