string str="thisisjustanexample";
string dev=beginning from str[3] and ending at str[8]
string dev = str.substr(3, 6);