A regular expression will work better, but get rid of these ". *" Parts. They complicate the code and serve no purpose. The regular expression looks like this:
\y(good|better|best)\y
. , regexp, \y, 1 (g | b), 2 (g = > go b = > be), 3 (go = > goo be = > bes | bet), 4 (go = > good bes = > best bet = > bett) .. , , .