Fixed issue with reading incomplete strings. (+ tested)