Would be better if this method took in Map.Entries or some sort of K-V pair rather than a list of strings.