def safe_string_strip(value):
    """
    Returns the supplied string with leading and trailing whitespace removed
    If the supplied argument is not of type string the argument will gracefully be returned (no exception raised)
    """
    return value.strip() if value != None and type(value) is str else value
