Moved the edit distance function into a module.

The string_manip module should now hold all general string manipulation
functions.