Extend SerialPort and String classes