clean the code for None vs empty string arguments/default argument for commands