Adds newline trimming