added strLen func that gets length from msb and lsb