def merge_title_text(title, text):
    """Adds title of a text to the text itself."""

    # Clean article text
    text = text.replace('\n\n', ' ')
    text = text.replace('\n', ' ')
    text = text.replace('  ', ' ')

    # Try to locate title in the full text
    begin = text.find(title)

    # If the title is present, add a full stop to make it part of the full text
    if begin != -1:
        end = begin+len(title)
        new_text = f"{text[:end]}.{text[end:]}"

    # If the title is not present, add it to the text, with a full stop and space
    else:
        new_text = f"{title}. {text}"

    return new_text