two swap the given string