[graphspell] move functions from char_player to str_transform and lexicographer