add endsWith method