make string concat faster

this change has made the script run lot faster