Issue 398

Wanted to fix the issue, but also wanted to make the code a little easier to understand
This should probably happen before the above ``if`` statements, as currently a single space would be considered a valid ``seqid``.