from typing import List
from typing import Union


def insert_in_text(elements:List[Union[None,str]],
        prefix:str="", suffix:str="", join_prefix:str=' ') -> str:
    """ Builds a string inserting elements between a prefix and a suffix.

    Args:
        elements: List of elements to insert.
        prefix (Optional): String used as prefix. Default is an empty string.
        suffix (Optional): String used as suffix. Default is an empty string.
        join_prefix (Optional): String used between elements. Default is an single space.

    Returns:
        The resulting string.

    """
    text = prefix
    for arg in elements:
        if arg is not None:
            text += join_prefix + arg
    text += suffix
    return text