check c-string