def empty_string_to_none(string):
    """Given a string, return None if string == "", and the string value
    (with type str) otherwise
    """

    if string == '':
        return None
    else:
        return str(string)