fixing empty string counting as a special word