swap each two nodes in the string