removed duplicated definition of endsWith 

Change-Id: I2dc27b98d225f8d903dd4d95c984476e472ae59f