class StringExt {

    public static String removeSurroundingQuotes(String text) {
        if (isEmpty(text) || text.length() < 2) {
            return text;
        }
        char first = text.charAt(0);
        char last = text.charAt(text.length() - 1);
        if (first != last) {
            return text;
        }
        if (first == '"' || first == '\'') {
            return text.substring(1, text.length() - 1);
        }
        return text;
    }

    private  StringExt();

}