fixed issue #665 to avoid add_string multiple times.
fixed small bug in previous commit #666
Merge pull request #666 from arulalant/master

fixed issue #665 to avoid add_string multiple times.