Remove newline characters and stript whitespace from imported file.