Add the debug option to the string if it is selected.