operatorSanitize static method

String operatorSanitize(
  1. String operatorName
)

Implementation

static String operatorSanitize(String operatorName) {
  String operator = '';
  if (operatorName.trim().length >= 20) {
    operator = operatorName.trim().substring(0, 20);
  } else {
    operator = operatorName.trim();
  }
  return operator;
}