title: Powershell - Need to check if name is ended with a sign
body: <p>My script read a path from TFS and I add a string to it but before I need to verify that the path contains or not contains a sign</p>
  <p>Example1:
  This is the path, in this case I need to add '/database/'</p>
  <pre><code>$/Idu Client-Server/CoreBranches/V6.4/Patches/V8.6.22
  </code></pre>
  <p>Example2: I need to add only 'database/'</p>
  <pre><code>$/Idu Client-Server/CoreBranches/V6.4/Patches/V8.6.22/
  </code></pre>
  <p>Example3: I  need to add '/'</p>
  <pre><code>$/Idu Client-Server/CoreBranches/V6.4/Patches/V8.6.22/database
  </code></pre>
  <p>The goal is to continue with the script with the path/database/
  so I need to check first the path and then to add or remove the 'database' string
  Anyone can help me with that please?</p>