title: how to get rid of "null" when concating string in groovy?
body: <p>I have a class</p>
  
  <pre><code>class A{
      String name
      String address
  }
  
  def a = new A()
  a.address = "some address"    
  println "${a.name} ${a.address}"  =&gt; "null some address"
  </code></pre>
  
  <p>Here <code>a.name</code> is null, so the string printed will contains "null", however I hope the result is <code>"some address"</code> which ignore the null value.</p>
  
  <p>I know I can use <code>println "${a.name ?: ''} ${a.address ?: ''}"</code> when printing, is there any simpler solution?</p>