performance tuning.

uc() was removed now to reduce str.lower() calls.