Extract text from data box name

I want to create a layer with the same name. It’s just annoying to have to maintain both individually.