public static function replace_space($str = '') { if (isset(APP::$settings->replace_many_space_to_one) && (int) APP::$settings->replace_many_space_to_one == 1) { $str = HELPER::replace_many_space($str); } return $str; }