Check in the 11 first characters of a string ends with "world":
The endsWith() method is not supported in Internet Explorer.