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

Uniformize functionality with Str::startsWith and Str::contains.
Merge pull request #1393 from vlakoff/develop

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