Use foldLeft to compute the total size of a list of strings.