Works fine for beta, but the same code would not work for alpha. The point is, I don't know the location in the string of the word I'm matching.
You're right that, in this case, I don't need to worry about the end of string. But still, I'd like to be able to give my users a general-purpose rule which works even without the quotes.