FoldLeft used to calculate the total size of a list of strings