finished string1 exercise