remove endln characters from LOG