Implemented String.foldPairwise.