handle quotes on local or remote node names