first version of SwapStrings