Removing unnecessary new lines