Przytnij tekst po pewnym słowie w JS

var new_str = str.substring(0, str.indexOf("Example"));
Cloudy Capuchin