Remove new line character before command prompt delimiter