remove new lines in the middle of commands