string match patch