write Dictionary.prototype.validWord