program to swap string