Changed substring to use string interpolation.