checking to see if first word will be add to stack array