src/main/java/seedu/insurancepal/logic/parser/ParserUtil.java
/**
     * Parses a {@code String description} into a {@code Description}.
     * Leading and trailing whitespaces will be trimmed.
     *
     * @throws ParseException if given {@code description} is invalid
     */
Parses a  String description into a  Description.
Leading and trailing whitespaces will be trimmed.

@throws ParseException if given  description is invalid
Parses a String description into a Description . Leading and trailing whitespaces will be trimmed . @throws ParseException if given description is invalid
public static Description parseDescription(String description) throws ParseException {
        requireNonNull(description);
        String trimmedDescription = description.trim();
        if (!(Description.isValidDescription(trimmedDescription))) {
            throw new ParseException(Description.MESSAGE_CONSTRAINTS);
        }
        return new Description(description);
    }
public static Description parseDescription ( String description ) throws ParseException { requireNonNull ( description ) ; String trimmedDescription = description . trim ( ) ; if ( ! ( Description . isValidDescription ( trimmedDescription ) ) ) { throw new ParseException ( Description . MESSAGE_CONSTRAINTS ) ; } return new Description ( description ) ; }
Parses a {@code String description} into a {@code Description}.
Parses a { @code String description } into a { @code Description } .