diff --git a/src/main/java/seedu/financialplanner/commands/BudgetCommand.java b/src/main/java/seedu/financialplanner/commands/BudgetCommand.java index f9f2febbde..ebede7f307 100644 --- a/src/main/java/seedu/financialplanner/commands/BudgetCommand.java +++ b/src/main/java/seedu/financialplanner/commands/BudgetCommand.java @@ -28,7 +28,7 @@ public BudgetCommand(RawCommand rawCommand) throws FinancialPlannerException { if (rawCommand.args.isEmpty()) { throw new FinancialPlannerException("Budget operation cannot be empty."); } - command = rawCommand.args.get(0); + command = String.join(" ", rawCommand.args).trim(); if (command.equals("delete") || command.equals("reset") || command.equals("view")) { return; }