Modified MOS_IO_READ_STRING() to properly cutoff buffer