var str=' '+'123456 aaaaaaaaaaa bbbbbbbbbbb'; var arr =str.split(/\s+/);arr.splice(0,2) str=arr.join(' ') alert(str)