public static final String getCardinal(int number) {
        while (number > 100) {
            number -= 100;
        }
        if ((number - 1) % 10 == 0 && number != 11) {
            return "st";
        }
        if ((number - 2) % 10 == 0 && number != 12) {
            return "nd";
        }
        if ((number - 3) % 10 == 0 && number != 13) {
            return "rd";
        }
        return "th";
    }