solved wordBreakI with a better code