why not construct string inside condition?