“What happens if I enter more than seven letters?”
That depends on how many unique letters your string contains. For instance, the word motorcoach is valid as input because it contains only the letters a, c, h, m, o, r and t.
However, the word abjectly would not be accepted, even though it’s shorter than motorcoach, because it contains 8 unique letters.