The function searches for the labels containing the specified substring in the associated string info.