title: validate variable contains string value
body: <p>I have one variable which contains string value like below:</p>
  
  <pre><code>var stringWithSpecialChar = "/Home%";
  </code></pre>
  
  <p>Sometimes this variable does not contain any value like below:</p>
  
  <pre><code>var stringWithSpecialChar = "/%";
  </code></pre>
  
  <p>I have to check here whether this variable contains string value or not.
  Everytime string value is changing so it is not sure that i will get the same value another time.</p>