added function 'ends-with'