Save string occurrences count optimally
Minor code change.