string encrypt swap