Renamed first_upper to capitalize and fixed uppercase bug.