I remember it was stripping away tailing space.
I will have a look.
ravas wrote
I keep pressing space after I input a command (Autocad habbit),
which results in 'Unknown command' after I press Enter.
Stripping any spaces from the beginning and end would
prevent this and help the transition for people like me. ;D