`upcase` works with char; then you can check numeric equality `=`.