minor change in the logic so that the code handles whitespaces correctly in UILineBreakModeWordWrap