fixed docstrings
Fixed string check