Add substring solution