Is there a reason you went with the 'ends with' flag here and still checked to see if it was completely equal?