LPS-48461 - Remove 'endsWith' method from Liferay.Util

Hi Nate,

Attached is an update for https://issues.liferay.com/browse/LPS-48461.

Please let me know if there are any issues.

Thanks!