18589 in words is written as :

Eighteen Thousand Five Hundred and Eighty Nine