C# Custom Filename XML typed Correctly?

Hi everyone, I need help with something in my code. I’m trying to create a custom XML file that was originally typed like this _FileName=“ExampleFile.xml”; so I declared a string exampleString and set filename to it _FileName=ExampleString+“.xml”;.However when I save the xml file it doesn’t have a name it’s simply .xml. Is the _FileName=ExampleString+“.xml”; typed correctly?

public string ExampleString = "exampleFile";
public string _FileName;
//unmodified
_FileName="ExampleFile.xml";
//modified and not working
_FileName=ExampleString+".xml";

Could it be a serialization problem? Check the script instance in your prefab/scene. The ‘Example String’ field may be set to nothing.

I figured it out, I tried putting _FileName=ExampleString+“.xml”; in void update and now it works fine.