Allow to avoid duplicated in list options.

Don't append or prepend items to list option it they already exists in the
current set value.
Removed unused param for util_str_replace.