if(empty($answer_text)){
$content = str_replace( '%AVERAGE_CATEGORY_POINTS_'.$category_name.'%' , $return_points.'%', $content);
}else{
$content = str_replace( $answer_text[0] , $return_points.'%', $content);
}