String (final String str, final char[] quoteSigns) { if (str != null && str.length() > 2) { final char c = str.charAt(0); for (char quote : quoteSigns) { if (quote == c) { return str.substring(1, c == str.charAt(str.length() - 1)? str.length() - 1 : str.length()); } } } return str; }