Now removes windows and unix style line breaks. Each test has a windows and a unix style line break.
Added a cleanitem function, this replaces newlines with a space. Currently this is used in the add, append, prepend and replace actions.