StringTake
StringTake[s, {start, end}]
takes a substring of s.
Attributes[StringTake] := {Protected}
Simple examples
In[1]:= StringTake["hello", {1, 1}]
Out[1]= "h"
In[2]:= StringTake["hello", {0, 1}]
Out[2]= StringTake["hello", {0, 1}]
In[3]:= StringTake["hello", {1, StringLength["hello"]}]
Out[3]= "hello"
In[4]:= StringTake["hello", {2, 1}]
Out[4]= ""
In[5]:= StringTake["hello", {2, 999}]
Out[5]= StringTake["hello", {2, 999}]