Finalized getWords function

Capable of taking all characters (even a few pinyins) but omitted
through an if condition