clean input and divide into lines