We should use scala logging so you don't have to do these if blocks.  Scala has call by name so the string does not get built until needed:

```scala
def cbynex(s: => String) = s + "foo"  // s is lazily evaulated
```

This is just an FYI, we should do this in a subsequent ticket.