Added "endsWith" function