Exclude the empty string
Style tweak
Check for valid word length