Compare string in locale format
<html> <body> <button onclick="var myS = new String('Sample String'); alert(myS.localeCompare('Sample String'));">String locale Compare</button> </body> </html>