title: Shell script Bash, Check if string starts and ends with single quotes
body: <p>I need to check if a string starts and ends with a single quote, for example
  'My name is Mozart'</p>
  
  <p>What I have is this, which doesn't work</p>
  
  <pre><code>if [[ $TEXT == '*' ]] ;
  </code></pre>
  
  <p>This does not work either </p>
  
  <pre><code>if [[ $TEXT == /'*/' ]] ;
  </code></pre>
  
  <p>But if I change it to</p>
  
  <pre><code>if [[ $TEXT == a*a ]] ;
  </code></pre>
  
  <p>it works for a sentence like 'an amazing apa'. So I Believe it has to do with the single quote sign.</p>
  
  <p>Any ideas on how I can solve it?</p>