I found some help from this question: How can I trim beginning and ending double quotes from a string?
CharMatcher.is('\"').trimFrom(mystring);
I am looking for solution without using regex.
However the problem I am facing with this approach is that it trims all occurrence of quotes. For example if mystring ends with two trailing quotes then it removes both. I want to remove only single character and not both.