Make the fuzzy matching return the correct offsets when there are elements in the text that need to be ignored.