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

Whitespace

Whitespace
represents a sequence of whitespace characters in StringExpression.
  • Whitespace is taken to include spaces, tabs, and newlines.
Split a string at all Whitespace characters:
Remove all leading and trailing spaces:
Split a string at all Whitespace characters:
In[1]:=
Click for copyable input
Out[1]=
 
Remove all leading and trailing spaces:
In[1]:=
Click for copyable input
Out[1]//FullForm=
New in 5.1