public int getPosition() {
      return position;
    }
Escapes the given string with single quotes, if the input string contains a double quote or any
of the given {@code charsToEscape}. Any single quotes in the input string will be escaped by
doubling.

<p>Given that the escapeChar is (;)

<p>Examples:

<ul>
  <li>A,B,C,D => A,B,C,D
  <li>A'B'C'D => 'A''B''C''D'
  <li>A;BCD => 'A;BCD'
  <li>AB"C"D => 'AB"C"D'
  <li>AB'"D:B => 'AB''"D:B'
</ul>

@param string a string which needs to be escaped
@param charsToEscape escape chars for the escape conditions
@return escaped string by single quote
amoro-ams/src/main/java/org/apache/amoro/server/utils/StructuredOptionsSplitter.java