Fixed handling of sequence string parsing from STDIN