program to swap strings