title: How to handle the %s format specifier
body: <p>Objective-C code:</p>
  
  <pre><code>NSString *str = @"hi";
  NSString *strDigit = @"1934"; (or @"193" may be a 3 digit or 4 digit value)
  
  [dayText appendFormat:@"%@%4s,str,[strDigit UTF8String]];
  </code></pre>
  
  <p>The Objective-C code handles the output string with current alignment when it appears with 3 or 4 digits as output. It is correctly aligning to left and doesn't matter how much digits it is. Any one know how to handle this in Swift?</p>
  
  <p>In Swift I tried with below code and the string is not adjusting the alignment according to the number of digits.</p>
  
  <pre><code>textForTrip += "\(str) \(String(format:"%4s", (strDigit.utf8))"
  </code></pre>