title: Expand a string which has '\t' to a specific length
body: <p>I have a string which have 3 '\t's and when I use the proper methods like:</p>
  
  <pre><code>string.padright(totalWidth);
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>string.format("{0,width}",myText);
  </code></pre>
  
  <p>Or even a function from scratch, I get a problem with that '\t' escape in the string which counts one but depend on a string, it's between 0 to 8.</p>
  
  <p>At the end, if I have this string "blah\tblah\tblah" and I apply those methods to have a 20 length string I get this</p>
  
  <pre><code>"blah    blah    blah      "
  </code></pre>
  
  <p>which has a length of 30.</p>
  
  <p>How can I count the spaces that '\t' fills after the string is displayed?</p>