Improved fuzzy edit script