downcase and upcase fixes