added StringSource

Added StringSource.
this makes writing unittests easier