check for equality and not endsWith