implement path.toString()