Update WordCountHelper.php

add handle of string type word1-word2