Put the pathToString method in use