def prepend(value, text):
    """
    Prepends text if value is not None.
    """
    if value is not None:
        value = str(value).strip()
        if value:
            return "{}{}".format(text, value)
    return ""