reformat from linebreaks and wordbreaks