# How to replace text in a string, in a certain spot

**URL:** <https://forum.kirupa.com/t/how-to-replace-text-in-a-string-in-a-certain-spot/329159>\
**Category:** flash\
**Created:** [July 26, 2012, 5:05pm UTC](https://forum.kirupa.com/t/how-to-replace-text-in-a-string-in-a-certain-spot/329159 "2012-07-26T17:05:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [July 26, 2012, 5:05pm UTC](https://forum.kirupa.com/t/how-to-replace-text-in-a-string-in-a-certain-spot/329159/1 "2012-07-26T17:05:38Z")

</div>

Hello,

I am working on a drag and drop interactive. The text all comes from external XML files. When the user drops an answer onto a question I need the text from the dragger to display in the proper location in the question, if it is a fill in the blanks type question.

How can I do this?
