Why is the second condition not met even though the "rose" string has been deleted?