Fixed bug with detect not valid string

Resolved #17