def parse_title(lines):
    """Parse optional book title."""
    TITLE_PREFIX = '# '
    book_title = None
    if lines[0].startswith(TITLE_PREFIX):
        book_title = lines.pop(0)[len(TITLE_PREFIX):].strip()
    return book_title