update string-find in KMP algorithm