there's a `StringUtils.endsWith` function that would be preferable to modifying a built-in prototype