fixed erroneous check for warnings string

Issue #36
- fixed erroneous check for warnings string