Reorder strings into groups and update activity titles