This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

StringQ

StringQ[expr]
gives True if expr is a string, and False otherwise.
Test whether is a string:
Pick out all strings in a list:
Test whether is a string:
In[1]:=
Click for copyable input
Out[1]=
 
Pick out all strings in a list:
In[1]:=
Click for copyable input
Out[1]=
StringQ works on strings with internal formatting:
StringQ works on any sequence of ordinary and special characters:
All strings have head String:
Use ToString to convert an expression to a string:
Use StringMatchQ to test whether a string pattern matches a particular string:
New in 2