Parsing serial string into variables