replace an unwanted strcmp with ==