toUpperCase method fixed