change multiline prompt into single line prompt