Get the last part of path
a complete path to a node (starting with "/")
a new string, or null if an error occurred
Get the last part of path