title: How to compare two string in asp.net vb
body: <p>I am Developing a web apps in Asp.net using vb.net language and i comparing two string using</p>
  
  <blockquote>
    <p>"=" and 
    "String.Equals()"</p>
  </blockquote>
  
  <p>but i get always false result</p>
  
  <pre><code>Dim decod As Decoder = Encoding.UTF8.GetDecoder()
  Dim totByt As Byte() = Convert.FromBase64String(Request("numType"))
  Dim chrCount As Integer = decod.GetCharCount(totByt, 0, totByt.Length)
  Dim deco_char(chrCount) As Char
  decod.GetChars(totByt, 0, totByt.Length, deco_char, 0)
  Dim str As New String(deco_char)
  
  If str = "MO" Or str.Equals("Mo") Then
         //Do somthing     
  
  End If
  </code></pre>
  
  <p>Please see my Watch window output
  <img src="https://i.stack.imgur.com/hhtGn.jpg" alt="enter image description here">
  Please tell me why this give me false condition and how to solve it.</p>