code: public static boolean osSensitiveEquals( String s1, String s2 )
      {
          if ( OS_CASE_SENSITIVE )
          {
              return s1.equals( s2 );
          }
          else
          {
              return s1.equalsIgnoreCase( s2 ); 
          }
      }
docs: Compare two strings, with case sensitivity determined by the operating system.
  
  @param s1 the first String to compare.
  @param s2 the second String to compare.
  @return <code>true</code> when:
  <ul>
  <li>the strings match exactly (including case), or,</li>
  <li>the operating system is not case-sensitive with regard to file names, and the strings match,
  ignoring case.</li>
  </ul>
  @see #isOSCaseSensitive()