We don't need a setter method for a public property, that's the point of it being public, so you can just do this:

    $this->security->sanitize_filename_str = array('whatever', 'you', 'wish');