Initialize the mode string before appending it