public static String firstUpper(String phrase) {
if (phrase.isEmpty() || phrase == null) return null;
i must test this method in many cases like passing a valid parameter, an empty parameter and a NULL parameter. it passes them all except with the null parameter, it throws an exception when it should return null.