how to read specific line from a string?