Some sorting, reverseWords, and stringReduction