static S transferCase(S a, S b) { if (startsWithUpperCase(a) && !isAllUpperCase(a)) ret firstToUpper(b); if (startsWithLowerCase(a) && !isAllLowerCase(a)) ret firstToLower(b); if (isAllLowerCase(a)) ret lower(b); if (isAllUpperCase(a)) ret upper(b); ret b; }