refactor to use String.toUpperCase()