I would use rev, but i don't want to reverse the whole string...
say the input is xxyyzz, i want to keep 3 pairs of 2, and swap the xx and the zz, keep the yy in the same place, and keep the characters in the same order within their pairs...another example, say i have 123456, it would be output as 563412.