public with sharing class PDFWbrController {
    public String tstr { get; set; }
    
    public List<String> getWbrStr() {
        List<String> rtn = new List<String>();
        if (String.isBlank(tstr) == false) {
            if (tstr.contains('LS内贸')) {
                for (Integer i = 0; i < tstr.removeEndIgnoreCase('LS内贸').length(); i++) {
                    rtn.add(tstr.substring(i, i +1));
                }
            }else{
               for (Integer i = 0; i < tstr.length(); i++) {
                    rtn.add(tstr.substring(i, i + 1));
                } 
            }
        }
        return rtn;
    }

    public Boolean getwbrFlag() {
        Boolean pdf2Flag = false;
        if (String.isBlank(tstr) == false && tstr.contains('LS内贸')) {
            pdf2Flag = true;
        }
        return pdf2Flag;
    }
}