Improve upperCaseFirst stability.