title: checking for matching string
body: <p>I have the following names stored in a text file.</p>
  
  <pre><code>|Rafal Dlugosz     |     Ryszard Wojtyna|
  |Shuming Wang     |     Junzo Watada|
  |Ryszard Wojtyna     |     Rafal Dlugosz|
  |Qinghua Hu     |     Daren X. Yu|
  |Seok-Beom Roh     |     Tae-Chon Ahn|
  |Daren X. Yu    |     Qinghua Hu|
  </code></pre>
  
  <p>Names are separated with <code>|</code> symbol. I need to display only those pair of names where the First person name is equal to Second person name in some pair and for the same pair , the Second person name is equal to first name. </p>
  
  <p>Example:</p>
  
  <pre><code>|Rafal Dlugosz     |     Ryszard Wojtyna|
  |Ryszard Wojtyna     |     Rafal Dlugosz|
  |Qinghua Hu     |     Daren X. Yu|
  |Daren X. Yu    |     Qinghua Hu|
  </code></pre>
  
  <p>Any kind of help would be appreciated .Thank you.</p>