endsWith() returns true if a string ends with a specified string, otherwise false.
Check if "Hello World" ends with "world":