Removing newlines before parsing