Add isString(), isComment() and isNesting() to state

Suggested by @Nami-Doc
Release 1.1.0