Add substring search to rc.