title: Termcolor returning strange string of characters
body: <p>I'm trying to build my own version of Wordle, and I've gotten stuck here. This part of the code is meant to color the appropriate character green when it matches the position and letter of the secret word, and yellow when it matches the letter, but not the position. Characters which aren't contained in the secret word aren't colored.</p>
  <pre class="lang-py prettyprint-override"><code>from termcolor import colored
  secret = &quot;widow&quot;
  
  def color(word):
      if word[0] == secret[0]:
          word = word.replace(word[0], colored(word[0], 'green'))
      if word[0] == secret[1] or secret[2] or secret[3] or secret[4]:
          word = word.replace(word[0], colored(word[0], 'yellow'))
      if word[1] == secret[1]:
          word = word.replace(word[1], colored(word[1], 'green'))
      if word[1] == secret[0] or secret[2] or secret[3] or secret[4]:
          word = word.replace(word[1], colored(word[1], 'yellow'))
      if word[2] == secret[2]:
          word = word.replace(word[2], colored(word[2], 'green'))
      if word[2] == secret[1] or secret[0] or secret[3] or secret[4]:
          word = word.replace(word[2], colored(word[2], 'yellow'))
      if word[3] == secret[3]:
          word = word.replace(word[3], colored(word[3], 'green'))
      if word[3] == secret[1] or secret[2] or secret[0] or secret[4]:
          word = word.replace(word[3], colored(word[3], 'yellow'))
      if word[4] == secret[4]:
          word = word.replace(word[4], colored(word[4], 'green'))
      if word[4] == secret[1] or secret[2] or secret[3] or secret[0]:
          word = word.replace(word[4], colored(word[4], 'yellow'))
      return word
  
  print(color(&quot;woiky&quot;))
  </code></pre>
  <p>In this example I'm expecting &quot;woiky&quot; to print with a green &quot;w&quot; (because woiky and widow both start with a &quot;w&quot;), a yellow &quot;i&quot; and a yellow &quot;o&quot; (because &quot;widow&quot; contains both an &quot;i&quot; and &quot;o&quot;, but not in those positions), but instead it prints:
  [33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m0m[33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m32mw[33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m0m[33m[[0m33m[33m[[0m[33m[[0m0m33m[33m[[0m33m[33m[[0m[33m[[0m0m[33m[[0m33m[33m[[0m[33m[[0m0m0m0moiky</p>
  <p>And all the &quot;[&quot; characters are yellow.</p>