title: Xpath Contains with a variable
body: <p>Been wracking my brain on this for some time, and cannot seem to figure it out.. I am looking to click on an email within my yahoo account. If I specify the values of the what I am looking for it works in finding on the first email. I need to be able to find any email based on the subject. 
  This works to click the first subject if it contains  "POST/EDIT/DELETE: *2007 NO DAMAGE TOYOTA CAMRY XLE"</p>
  
  <pre><code>wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[contains(text(),'POST/EDIT/DELETE: *2007 NO DAMAGE TOYOTA CAMRY XLE')]"))).click();
  </code></pre>
  
  <p>If I make it a variable on the other hand it does not: </p>
  
  <pre><code>String emailtitle = "POST/EDIT/DELETE: "+ "*2007 NO DAMAGE TOYOTA CAMRY XLE";//Build email string
  System.out.println("Email Title is: "+ emailtitle);
  wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[contains(text(),'" + emailtitle + "')]"))).click();
  </code></pre>
  
  <p>Where I am Searching:</p>
  
  <pre><code>&lt;div class="subj" role="gridcell" id="yui_3_16_0_ym19_1_1509685997190_1725"&gt; &lt;span dir="" class="subject " title="POST/EDIT/DELETE: *2007 NO DAMAGE TOYOTA CAMRY XLE ( cars &amp;amp; trucks - by owner)" id="yui_3_16_0_ym19_1_1509685997190_1724"&gt; POST/EDIT/DELETE: *2007 NO DAMAGE TOYOTA CAMRY XLE ( cars &amp;amp; trucks - by owner) &lt;/span&gt;  &lt;span class="thread-snippet" role="gridcell" dir="" id="yui_3_16_0_ym19_1_1509685997190_1754"&gt; IMPORTANT - FURTHER ACTION IS REQUIRED TO COMPLETE YOUR REQUEST !!! FOLLOW THE WEB ADDRESS BELOW TO: PUBLISH YOUR AD EDIT (OR CONFIRM AN EDIT TO) YOUR AD VERIFY YOUR EMAIL ADDRESS DELETE YOUR AD If not clickable, please copy and paste the address to your browser: THIS LINK IS A PASSWORD. DO NOT SHARE IT - anyone who has a copy of this link can edit or delete your posting. link PLEASE KEEP THIS EMAIL - you may need it to manage your posting! Your posting &lt;/span&gt;  &lt;/div&gt;
  </code></pre>
  
  <p>Ideally I would like to be able to have emailtitle change based on the title of the email. So using a variable is a must. But for some reason when I use it as a variable it doesn't return a value. Is there a reason this would be happening? </p>