Support for multiple needles in Str::endsWith, added tests.

Uniformize functionality with Str::startsWith and Str::contains.