def is_str(string):
    return ((string is not None) and isinstance(string, str) and (len(string) > 0))
def is_str(string):
    return ((string is not None) and isinstance(string, str) and (len(string) > 0))