$itemsubject = trimlink($data['thread_subject'], 23);
$itemsubject = trimlink($data['thread_subject'], 20);