adding newline trimmer