fixed issue #665 to avoid add_string multiple times.