title: Adding 'space' in C# textbox
body: <ol>
  <li><p>Hi guys, so I need to add a 'space' between each character in my displayed text box.</p></li>
  <li><p>I am giving the user a masked word like this <code>He__o</code> for him to guess and I want to convert this to <code>H e _ _ o</code> </p></li>
  <li><p>I am using the following code to randomly replace characters with <code>'_'</code></p>
  
  <pre><code>    char[] partialWord = word.ToCharArray();
  
      int numberOfCharsToHide = word.Length / 2;          //divide word length by 2 to get chars to hide 
      Random randomNumberGenerator = new Random();        //generate rand number
      HashSet&lt;int&gt; maskedIndices = new HashSet&lt;int&gt;();    //This is to make sure that I select unique indices to hide. Hashset helps in achieving this
      for (int i = 0; i &lt; numberOfCharsToHide; i++)       //counter until it reaches words to hide
      {
          int rIndex = randomNumberGenerator.Next(0, word.Length);       //init rindex
          while (!maskedIndices.Add(rIndex))
          {
              rIndex = randomNumberGenerator.Next(0, word.Length); //This is to make sure that I select unique indices to hide. Hashset helps in achieving this
          }
          partialWord[rIndex] = '_';                      //replace with _
      }
      return new string(partialWord);   
  </code></pre></li>
  <li><p>I have tried : <code>partialWord[rIndex] = '_ ';</code>however this brings the error  "Too many characters in literal"</p></li>
  <li><p>I have tried : <code>partialWord[rIndex] = "_ ";</code> however this returns the error " Cannot convert type string to char.</p></li>
  </ol>
  
  <p>Any idea how I can proceed to achieve a space between each character?</p>
  
  <p>Thanks</p>