title: Swift 3 better way to unwrap an optional
body: <p>Right now I have some code that looks like the following:</p>
  
  <pre><code>let msg: String? = myStr.removingPercentEncoding ?? nil
  
  print("msg \(msg!)")
  </code></pre>
  
  <p>I really don't like the use of <code>!</code> in <code>msg!</code> as that can possibly throw an exception, I believe.</p>
  
  <p>What's the best way to call <code>myStr.removingPercentEncoding</code> if myStr is not nil and then unwrap msg without throwing an exception?</p>