How to skip empty strings with String.format on android?
<p>Users of my app will be able to re-format the information they see - they will need to edit string like:</p>

<pre><code>&lt;b&gt;Movie name:&lt;/b&gt; %1$s, &lt;br&gt;&lt;b&gt;Country: &lt;/b&gt; %2$s.
</code></pre>

<p>Then I take this string and apply String.format.
For ex., Country is empty, in result user will see:</p>

<blockquote>
  <p><strong>Movie name</strong>: SomeMovieName, Country:</p>
</blockquote>

<p>Is there any way to not show the whole Country line if %2$s is empty?</p>
