Newline detector