for TWO reasons. First, the one I suggest is an application of logic (if $string is all letters, then it CAN'T have non-letters). Second, is because the $ anchor in a regex can match directly before a newline (which is NOT a letter). You can get around that by saying: