A comment regarding why string manipulation and sorting is necessary would be nice.