iOS Shortcut "Run Action with Text" (magic variable?)

Many thanks: this is illuminating. I think I am close. The only thing I cannot figure out—and I apologize; I have tried—is how to put the line with the changed case back into the original position. (The title is always in the second line.) This shows both my attempt and the outcome: