adding equals test to make sure string and numbers are not equal