This has been corrected in the next print.
What exactly is the first and what is the second function? Which one is actually faster?
Edit:
The complete, correct script is
function spaces theAmount
put " " into mySpace
repeat max(1,round(theAmount/length(mySpace))+1)
put mySpace after myManySpaces
end repeat
return char 1 to theAmount of myManySpaces
end spaces