private function FormatName($string) { if(!function_exists("get_string_max_length")) { require_once("function.string.php"); } $str = preg_replace('/[[:^print:]]/', '', $string); $str = get_string_max_length($str, 65); $str = get_letter_number_underscore($str); $str = strtolower($str); return $this->AccountID . "_" . $str; }