$keys{$string}++ if($line=~/,$string$/);