If I'm understanding this correctly, you have 25 X's in the middle of your text in column B and you want those X's replaced with what's in A?
=SUBSTITUTE(B1,REPT("X",25),A1)
If this is not it, then what exactly is in A1 and what exactly is in B1 and what do you want C1 to show?