Clean-up the imported text based on the Slovak typographic rules

A common problem when receiving text from other people is that it is often not as consistently formatted as you might like. Some common things that need to be fixed are: Fixing these items manually can become very time consuming. This script will help you clean-up the imported text based on the Slovak typographic rules.
 * removing double spaces
 * removing spaces before full stops, commas, colons, semicolons, question marks or exclamation marks
 * removing extra spaces or tabs at the beginning and at the end of the paragraphs
 * removing blank lines between paragraphs