checking issue with substring solved