Comparing strings and numbers doesn't allow errors on converting string into a number