Unable to use sed to replace in-place in the file with string of 912 chars long I have a variable “key” (a very long string)