There are lots of different ways to modify a string, but some would turn out to be very inefficient. A gentle wander through CharacterView and a mapping closure.
closure
How to sort an array of arrays of strings, on the contents of one of those strings, in just 4 lines of Swift.
