public static function replace($string = false, $find = false, $replaceWith = '') {

        if ($string && $find) {

            return str_replace($find, $replaceWith, $string);
        }

        return false;
    }
public static function replace($string = false, $find = false, $replaceWith = '') {

        if ($string && $find) {

            return str_replace($find, $replaceWith, $string);
        }

        return false;
    }
public static function replace ( $ string = false , $ find = false , $ replaceWith = '' ) { if ( $ string && $ find ) { return str_replace ( $ find , $ replaceWith , $ string ) ; } return false ; }
Get string with specific substring replaced.
@param string full string
@param string substring to find and replace
@param string replace with this value
@return string trimmed
Get string with specific substring replaced .