In cases when concatenation arguments are the same they produce equal String at each iteration. This is why we can hoist them to reduce output of String garbage.

Comment From: sbrannen

This has been merged into master.

Thanks