Fix add_data handling when strings are input
Merge pull request #275 from smfreegard/master

Fix add_data handling when input is a string