Created helper functions to determine if one string alpha-numerically proceeds or preceeds another string.
Completed autocorrect feature for console; when more than one word matches, the return value was chosen to be the first alphabetically.