working on word breaking function