Trim newlines from text