Object names differ between Editor Preview and final build

I allready ran into this problem in the past. I´m tracing for objects. In the Editor Preview it will return the name while in the final build it will return the ID. I could easily fix this by renaming the actor once it was placed in the scene wich would also rename the ID to the same as the Object Name. Now I don´t place my actor in the scene but have them loaded to my character as child actor, so I can´t rename them. And again the final build shows a different name. This means every time I want to do test builds I have to rename all my string variables to make it work in the final build and then rename them back to make it work in the editor again. See attached screenshots. Is this a bug or a feature an is there any way to prevent this ? This is really annoying.