Best Practives Comparing Strings

Best Practives Comparing Strings

Could you please share Best Practices when comparing strings. 

Sometimes, when I use strings that contain numbers as alphabetical characters, comparison commands only work with string.contains("____") 

If I use if ( check = "_______" )  , even if it is equal, that condition DOES NOT work, but if I use contains, it works

Any ideas why ? 

Ariel Segall
Cloud Mobile Forms
Zoho Partner
arielsegall@CloudMobileForms.com
(877) 436-8133