src/main/java/seedu/address/logic/parser/ParserUtil.java
public static Nric parseNric(String nric) throws ParseException {
        requireNonNull(nric);
        String trimmedNric = nric.trim();
        if (!Nric.isValidNric(trimmedNric)) {
            throw new ParseException(Nric.MESSAGE_CONSTRAINTS);
        }
        return new Nric(trimmedNric);
    }
/**
     * Parses a {@code String nric} into a {@code Nric}.
     * Leading and trailing whitespaces will be trimmed.
     *
     * @throws ParseException if the given {@code nric} is invalid.
     */
Parses a  String nric into a  Nric.
Leading and trailing whitespaces will be trimmed.

@throws ParseException if the given  nric is invalid.
Parses a String nric into a Nric . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given nric is invalid .
public static Nric parseNric(String nric) throws ParseException {
        requireNonNull(nric);
        String trimmedNric = nric.trim();
        if (!Nric.isValidNric(trimmedNric)) {
            throw new ParseException(Nric.MESSAGE_CONSTRAINTS);
        }
        return new Nric(trimmedNric);
    }
public static Nric parseNric ( String nric ) throws ParseException { requireNonNull ( nric ) ; String trimmedNric = nric . trim ( ) ; if ( ! Nric . isValidNric ( trimmedNric ) ) { throw new ParseException ( Nric . MESSAGE_CONSTRAINTS ) ; } return new Nric ( trimmedNric ) ; }
Parses a {@code String nric} into a {@code Nric}.
Parses a { @code String nric } into a { @code Nric } .