How to compare a string in unix

 
$STRING="XYZ"; 
 
if [ "$STRING" == "ABC" ]  
then 
  echo "Match"
else
  echo "No Match"
fi