The WizardEngine provides a subroutine method, "Trim", which will remove leading and trailing spaces from a string. Trim takes a single parameter, a pointer to a string, which is updated in place by the Trim method.
If Move;
[
IfThen(Move
== Forward && PickValid(Trig != 0, 1),
Engine\Trim(&Username); {trim leading & trailing
whitespace}
IfElse(PickValid(Username, "") ==
"",
Engine\Error("A username is
required");
… …
…