[graphspell] move function from char_player to str_transform