Fixed bug in blank word length check