upcase pattern-matching