Don't use string-split. Instead read until eof.