use a helper so we can return a string
Merge pull request #3 from mistifyio/GetState

use a helper so we can return a string