removing erroneous new line