function commandStr($str){
$str = trim($str);
$str = preg_replace("/\t/", "", $str);
$str = preg_replace("/\r\n/", "", $str);
$str = preg_replace("/\n/", "", $str);
$str = preg_replace("/ /", "", $str);
$str = preg_replace("/ /", "", $str);
return $str;
}