How to check if a String must be completed with format method dynamically?
<p>I've the following strings:</p>

<pre><code>s = "The device %s was opened."
</code></pre>

<ol>
<li><p>Are there the possibility to know if the String must be filled with format method?</p></li>
<li><p>If yes to the first question, are there the possibility to know how many <code>%s</code> exist in this string?</p></li>
</ol>