try again for proper substr