Easiest way to make "fill in the blank"

Peepz,
I want to make a script that makes a “fill in the blank” format out of XML.

So i have a text that looks like this:
“the (short) man is only 53 cm”

after the word (short) i want to place a input textfield so it can be changed to “shortest”.

how can i get the position of the word (with the () aroud it) and place the input text after it?

it will have to look like this:
the (short)____input text here____man is only 53 cm.

i hope this is possible?
thnx already!