Some times we face issues to create XPath of WebElement which have space in starting of it and then we check the element html source where we found or   is added before the element text while it display as space on UI. Normally we create the XPath to identify this element by adding space in the starting of it but his will not identify the element. There are another workaround to identify this element by contains text method. But if we have to identify the element with exact text having starting space or ending space then we can use following way to do this.
lets see this example
<div class="myclass">
<label>AgendaShowCapacity </label>
</div>
OR
<div class="myclass">
<label> AgendaShowCapacity</label>
<label> AgendaShowCapacity</label>
</div>
Following XPath will not work for this
//label[text()='AgendaShowCapacity ']
doesn't work
Here we have to use following text to identify the element
= \u00a0
  = \u0160
//label[text()='\u0160AgendaShowCapacity']