String source

Added StringSource.
this makes writing unittests easier