exercise for finding all instances of a string