the semicolon will likely be the last character here, so you can use `if (xxx.charAt(xxx.length - 1) === ';')`