Trim the output for GetDatasetPath