implemented new line fix via re module as suggested