correction typo substr()