The stringMatch method is used for literal string comparison. This compares the value set by authors in validation against the student's response and evaluates whether they are the same or not. stringMatch is a simple comparison method: it does not take the syntax and data type set in the validation area into account.
- Ignore leading and trailing spaces
Ignores spaces before and after a value, i.e. "a" will be treated as "a".
- Treat multiple spaces as one
Multiple spaces will be ignored and treated as one, i.e "a b" is the same as "a b".