Попробуйте JavaScript Online Substring
var str = "Hello world!";
var res = str.substring(1, 4); //ell
Sleepy Swiftlet
var str = "Hello world!";
var res = str.substring(1, 4); //ell