fix substring typo