fix getPhraseWidth for variable length wildcard