To swap two strings