This script (which could be more simple)
removes extra spaces between words and trailing spaces
(and commas)
and turns all letters into UPPER CASE.It does not remove
extra initial spaces.
This function can be combined with other javascripts (for example, those that check answers) so that those taking a drill will not need to be so careful about extra spaces or capitalizing correctly.
hits
since Dec. 10, 1999.
Click here to go to an example of this script used with a script
that checks the answer of an exercise.