Optimize String appends in hudson.Functions