Stack overflow on words (repeat 'a')