Repaired string detection issue.

- Now checking for "basestring" @http://stackoverflow.com/questions/1979004/what-is-the-difference-between-isinstanceaaa-basestring-and-isinstanceaaa