Fix state names without a space.

The change to fix statenames with a space had a misplaced question mark.
This patch corrects that so that all state names work correctly.
Merge pull request #234 from kitschysynq/master

Fix state names without a space