solution for Word Break