def is_string_secure(string):
 if re.match(VALID_CHARS_REGEX, string):
  return True
 else:
  return False

def is_string_secure ( string ) : if re . match ( VALID_CHARS_REGEX , string ) : return True else : return False
validates that this string does not contain any possible characters that are indicative of a security breach .