Fix the mode string.