"some random string".split(/[\s\-]/).slice(0, 2); // ["some", "random"]
"some-random string".split(/[\s\-]/).slice(0, 2); // ["some", "random"]
"some random-string".split(/[\s\-]/).slice(0, 2); // ["some", "random"]
"some-random-string".split(/[\s\-]/).slice(0, 2); // ["some", "random"]