Handling of QUIT after toupper