new method of reading strings from PuTTY

Dependencies:   mbed-os

Fork of z_compare_commands by ELEC350 - Team Q