Linux String substitute - Mistake or validation error?

I have completed the task for Linux String substitute. But the task failed with error: - all occurences of ‘String’ have not changed to ‘Marine’ in the file ‘/root/nautilus.xml’ on stbkp01

Link for task review is:!/task_review?task_id=6217c8ad7cfb397a27dec30c

Image which shows there are no additional “String” pattern in the file:

@Tej_Singh_Rana , @tgp - Kindly help me understand if its some fault of mine or if its a validation error?

@Tej-Singh-Rana , can you please look into this?

Hello, @sarvajitsankar
Can you please tell me what command you ran?

@Tej-Singh-Rana ,
sudo sed ‘s/String/Marine/g’ /root/nautilus.xml | sudo tee /root/nautilus.xml >/dev/null

@Tej-Singh-Rana ,
This image shows the output of following command after the string replacement is done:

sudo cat /root/nautilus.xml

For more proof you can validate/review my assignment work on this link:!/task_review?task_id=6217c8ad7cfb397a27dec30c

Hi, @sarvajitsankar
I don’t think so it’s a correct command.

@Tej-Singh-Rana ,
I have proofs which show that the String is updated in that file, and there are no additional Strings to update. I believe this is also a way to do this solution. Can you tell me why this is wrong or where it is failing?

Yeah, command is correct. I got confused because of the end of the command /dev/null.
Let me forward this to KKE engineers…

I marked this task pending for you. Please try again.

I ran the command in the lab and I saw that after running the command file got empty.
So now please try it out without tee command.