Terminate SMARTS parsing on whitespace or EOF.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>