Allow spaces in variable names during expansion

Improves RM #1970.

There are other cases of scanf using %[^.].%s, mostly in function
evaluation that this does not cover.
Merge pull request #545 from baptr/issue-1970

Allow spaces in variable names during expansion