Implemented toString() of script and quantities