title: XPath function normalize-space() and starts-with() don't find etem with &nbsp; right befor item
body: <p>I have piece of  such HTML code</p>
  
  <pre><code>&lt;td&gt;
  &lt;a href="CMenu?op=m&amp;menuID=42&amp;rurl={{rurl}}" title="Edit menu"&gt;
  &lt;img border="0" alt="" src="Images/application.gif"&gt;
  &amp;nbsp;Case
  &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>and need to find text "Case".<br>
  I use different XPath Queries, but no one is good, all find nothing:</p>
  
  <pre><code>//a[text() = ' Case']
  //a[text() = 'Case']
  //td/a[normalize-space(text()) = 'Case']
  //td[a[normalize-space(.) = 'Case']]
  //td[a[normalize-space(text()) = 'Case']]
  //*[starts-with(.," Case")]
  //*[starts-with(.,"Case")]
  </code></pre>
  
  <p>But, when I try to find this item with </p>
  
  <pre><code>//a[contains(.,'Case') and string-length() = 5]
  </code></pre>
  
  <p>It works, but I can not accept hard code '5', I want make this XPath multipurpose for other relative items.<br>
  And if I use </p>
  
  <pre><code>//a[contains(.,'Case')]
  </code></pre>
  
  <p>I find a lists of items which contains 'Case', but need only one with 'Case' and not more chars.
  Maybe I do something wrong, just want take it clear to me.  </p>
  
  <hr>
  
  <p>My colleague tell me that I can use this one XPath</p>
  
  <pre><code>//a[substring(text(),2)='Case']
  </code></pre>
  
  <p>just skip this space. I find out that it's work! but seems to me there is another way to solve my problem with out any skip or pass.</p>