Added: Method to convert path coordinates to String[]