create a word array to contain input chars