eachline method for strings

`eachline` variant for strings with tests included.  It should be compatible with `eachline(stream::IO)` and produce the same results for the same textual input.

Any and all style/implementation feedback is very much welcome, I am very much a novice when it comes to Julia and the standard library code base.