Remove size parameter from substr call

Change-Id: I2745bcf8f242fe4a1992aa547efaccf33db0fb5b