Remove duplicated words
add stack