color-words: refactor word splitting and use ALLOC_GROW()