src/main/java/seedu/address/model/modelStaff/Staff.java
public static boolean isValidLevel(String test) {
        String testTrimmed = test.toUpperCase().trim();
        return testTrimmed.equals(String.valueOf(Level.ADMIN))
                || testTrimmed.equals(String.valueOf(Level.TEACHER));
    }
/**
     * Indicate whether a string is valid for Staff Permission Level.
     *
     * @param test the string to be checked for valid Staff Permission Level.
     * @return true if this string matches "admin" or "teacher", false otherwise.
     */
Indicate whether a string is valid for Staff Permission Level.
@param test the string to be checked for valid Staff Permission Level.
@return true if this string matches "admin" or "teacher", false otherwise.
Indicate whether a string is valid for Staff Permission Level . @param test the string to be checked for valid Staff Permission Level . @return true if this string matches " admin " or " teacher " false otherwise .
public static boolean isValidLevel(String test) {
        String testTrimmed = test.toUpperCase().trim();
        return testTrimmed.equals(String.valueOf(Level.ADMIN))
                || testTrimmed.equals(String.valueOf(Level.TEACHER));
    }
public static boolean isValidLevel ( String test ) { String testTrimmed = test . toUpperCase ( ) . trim ( ) ; return testTrimmed . equals ( String . valueOf ( Level . ADMIN ) ) || testTrimmed . equals ( String . valueOf ( Level . TEACHER ) ) ; }
Indicate whether a string is valid for Staff Permission Level.
Indicate whether a string is valid for Staff Permission Level .