While calculating diff common prefix or suffix is given priority instead of word boundary. Parameters should be available to disable this. 