cw on hello to be (newText). Then try to repeat that on goodbye. The final paren is missing.
I believe Tim Pope created a plugin called repeat.vim which allowed plugins like this to play well with the repeat system of Vim. I hear it only requires adding a couple of extra lines to your plugin.