Added ability to normalize the text.

Remove multiple spaces and newlines.