Improved sequence name parsing