Small fix in documentation
Updated function to check strings