move StringRecord to core module
add a convenient record reader that reads data from the standard input ( very useful for tests)