flip the priority order of flipped string