def xstr(this_string):
    """Return an empty string if the type is NoneType

    This avoids error when we're looking for a string throughout the script

    :param s: an object to be checked if it is NoneType
    """

    if this_string is None:
        return ''
    return str(this_string)