sbool equalsOrStartsWithPlusDollar(S a, S b) { ret startsWith(a, b) && (l(a) == l(b) || a.charAt(l(b)) == '$'); }