As noted, you have to be sure that a country name doesn't contain punctuation characters if you choose to use \w* ; if uncertain, changing it to \S* should avoid that possibility.