String cannot be compared using double equals