Change word matching pattern for insert-last-word