Refactoring of the toString() method of the Script class after having passed performance tests