Remove extra 'expect(' added during search and replace.