title: Robot Framework String Formatting
body: <p>How can I make a string format like following:</p>
  <pre><code>${original} = MZ**77050000*******228  
  ${desired} =  MZXX 7705 0000 XXXX XXXX 28
  </code></pre>
  <p>I managed to replace the * to X, and add the spaces as following, but yet can't format the 3rd last int to X:</p>
  <pre><code>${rep_temp} =  Replace String  ${original}    *   X
  
  FOR  ${i}  IN  4  8  12  16  20  22
              ${y} =   Evaluate    ${i} - 4
              ${temp} =       Get Substring     ${rep_temp}    ${y}    ${i}
              ${new_temp} =  Set Variable      ${new_temp} ${temp}
              ${new_temp} =  Strip String      ${new_temp}
              log to console     new_temp--&gt;${new_temp}
          END
  </code></pre>