Read serial string which end with #