How can I check if a string is null or empty and trim if not null or empty?
<p>I tried the following:</p>

<pre><code>dummy.Title = ds1Question.Title.null ? "Dummy title" : ds1Question.Title.Trim();
</code></pre>

<p>I was expecting to see something like nullorempty with intellisense but it seems there is nothing that can do that. Is there another way I can do this?</p>
