entity character class should contain hyphen also.