Bug fix for string-opt2