title: How to manipulate the position of character(s) in a string in LiveCode
body: <p>So, I have a very specific problem. I have a random word which I have already generated. I also have a separate string that uses the length of that character, 'n'  to repeat "_ " n times to field <code>wordDisplay</code>. These elements of the program work. So, if the random word was "meme", the <code>wordDisplay</code>, on <code>openCard</code> would show "_ _ _ _ ". </p>
  
  <p>Now, I have an input button "a". If this button is clicked, it will check for "a" in the <code>randomword</code> variable and if it is found, it will replace the "_ " in the <code>wordDisplay</code> with "a". So, if the <code>randomword</code> was "name", then before you click "a", the <code>wordDisplay</code> shows "_ _ _ _ ". After you click "a", <code>wordDisplay</code> will show "_ a _ _ ". However, if there is more than one "a", it will reveal all of them. </p>
  
  <p>It is also worth knowing that I plan to have the program do something if there is no letter found.</p>
  
  <p>Being a beginner to LiveCode, this all seems very confusing to me and I would really appreciate someone to share their knowledge on how I would do something like this. Thanks!</p>