Correct string state machine
Merge pull request #1 from refnil/master

Correct string state machine