DOC: improves the str type explanation

Closes #18449