Improved missing_char method