The line I'm replacing had double quotes. Other strings in the same file which have single quotes in them are also enclosed in double quotes.