chomping input because we supply \r for script