If you get 8 characters, you send them off...

If you get 5 characters, how do you know that's all you're going to get?
Is it a timed thing? Is the 5th character a CR or LF or something that would be recognizable?