Finished sub-functions for edit distance = 1 :grinning: