Add e to substitute command for # to avoid errors with command without com