short circuit and rewind on newline in string