Removing excess newlines