add str_replace to preview func ..