add find string algorithm