How can i remove last and first apostrophe ( ' ) from string : <p>How can i remove last and first apostrophe ( ' ) from string.</p>

<p>I have the string is  <code>"'name'"</code> and i need to change to <code>"name"</code> i don't need the apostrophe symbol ('). </p>
