[graphspell] str_transform: code clarification