digit upcase bug: input 0 or 1 error