lsame function

bool lsame(
  1. String CA,
  2. String CB
)

Implementation

bool lsame(final String CA, final String CB) {
  return CA.isNotEmpty &&
      CB.isNotEmpty &&
      CA.toUpperCase()[0] == CB.toUpperCase()[0];
}