convert the path from array to string