added chunks method in strutil