Add docsring to check_string.