Finish moving Levenshtein logic to core
Implement a hack to make Levenshtein work correctly

This needs to be reworked though.