title: Utilities.formatString() New Apps Script method, not working as intended
body: <p>I am using the new method: Utilities.formatString()</p>
  
  <p>In the <a href="https://developers.google.com/apps-script/class_utilities#formatString" rel="nofollow">Google Documentation</a> is says it is similar to sprintf %-style.</p>
  
  <p>I searched and read <a href="http://php.net/manual/en/function.sprintf.php" rel="nofollow">this article</a> about sprintf in PHP. </p>
  
  <p>I cannot seem to get this to work as intended. It is meant to pad this 8 character string with 4 leading zeros. I know there are other ways to do this, But I am trying to get a handle on this sprintf / formatString thing. </p>
  
  <pre><code>var noFormat = "12345678";
  var formatted = Utilities.formatString("%012s", noFormat);
  </code></pre>
  
  <p>I expected the var formatted to be equal to "000012345678".
  my debugger tell me that formatted = 0, or sometimes it throws an error..</p>
  
  <p>I am confused. </p>